#include "reason_phrase.h"
Go to the source code of this file.
Defines | |
#define | BLOCK(m) { (sizeof(m) / sizeof(char*)), m } |
Functions | |
const char * | MHD_get_reason_phrase_for (unsigned int code) |
Variables | |
static const char * | invalid_hundred [] = { } |
static const char * | one_hundred [] |
static const char * | two_hundred [] |
static const char * | three_hundred [] |
static const char * | four_hundred [] |
static const char * | five_hundred [] |
static struct MHD_Reason_Block | reasons [] |
Definition in file reason_phrase.c.
#define BLOCK | ( | m | ) | { (sizeof(m) / sizeof(char*)), m } |
Definition at line 92 of file reason_phrase.c.
const char* MHD_get_reason_phrase_for | ( | unsigned int | code | ) |
Returns the string reason phrase for a response code.
If we don't have a string for a status code, we give the first message in that status code class.
Definition at line 104 of file reason_phrase.c.
Referenced by build_header_response().
const char* five_hundred[] [static] |
Initial value:
{ "Internal Server Error", "Bad Gateway", "Service Unavailable", "Gateway Time-out", "HTTP Version not supported" }
Definition at line 77 of file reason_phrase.c.
const char* four_hundred[] [static] |
Initial value:
{ "Bad Request", "Unauthorized", "Payment Required", "Forbidden", "Not Found", "Method Not Allowed", "Not Acceptable", "Proxy Authentication Required", "Request Time-out", "Conflict", "Gone", "Length Required", "Precondition Failed", "Request Entity Too Large", "Request-URI Too Large", "Unsupported Media Type" }
Definition at line 58 of file reason_phrase.c.
const char* invalid_hundred[] = { } [static] |
Definition at line 31 of file reason_phrase.c.
const char* one_hundred[] [static] |
Initial value:
{ "Continue", "Switching Protocols", "Processing" }
Definition at line 33 of file reason_phrase.c.
struct MHD_Reason_Block reasons[] [static] |
Initial value:
{ BLOCK (invalid_hundred), BLOCK (one_hundred), BLOCK (two_hundred), BLOCK (three_hundred), BLOCK (four_hundred), BLOCK (five_hundred), }
Definition at line 94 of file reason_phrase.c.
const char* three_hundred[] [static] |
Initial value:
{ "Multiple Choices", "Moved Permanently", "Moved Temporarily", "See Other", "Not Modified", "Use Proxy" }
Definition at line 49 of file reason_phrase.c.
const char* two_hundred[] [static] |
Initial value:
{ "OK", "Created", "Accepted", "Non-Authoritative Information", "No Content", "Reset Content", "Partial Content" }
Definition at line 39 of file reason_phrase.c.