GNU libmicrohttpd  0.9.29
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
reason_phrase.c File Reference

Tables of the string response phrases. More...

#include "reason_phrase.h"
Include dependency graph for reason_phrase.c:

Go to the source code of this file.

Macros

#define NULL   (void*)0
 
#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 [] = { NULL }
 
static const char *const one_hundred []
 
static const char *const two_hundred []
 
static const char *const three_hundred []
 
static const char *const four_hundred []
 
static const char *const five_hundred []
 
static struct MHD_Reason_Block reasons []
 

Detailed Description

Tables of the string response phrases.

Author
Elliot Glaysher
Christian Grothoff (minor code clean up)
Elliot Glaysher

Definition in file reason_phrase.c.

Macro Definition Documentation

#define BLOCK (   m)    { (sizeof(m) / sizeof(char*)), m }

Definition at line 140 of file reason_phrase.c.

return NULL   (void*)0

Definition at line 31 of file reason_phrase.c.

Function Documentation

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 152 of file reason_phrase.c.

Referenced by build_header_response().

Here is the caller graph for this function:

Variable Documentation

const char* const five_hundred[]
static
Initial value:
= {
"Internal Server Error",
"Not Implemented",
"Bad Gateway",
"Service Unavailable",
"Gateway Time-out",
"HTTP Version not supported",
"Variant Also Negotiates",
"Insufficient Storage",
"Unknown",
"Bandwidth Limit Exceeded",
"Not Extended"
}

Definition at line 119 of file reason_phrase.c.

const char* const four_hundred[]
static

Definition at line 64 of file reason_phrase.c.

const char* invalid_hundred[] = { NULL }
static

Definition at line 34 of file reason_phrase.c.

const char* const one_hundred[]
static
Initial value:
= {
"Continue",
"Switching Protocols",
"Processing"
}

Definition at line 36 of file reason_phrase.c.

struct MHD_Reason_Block reasons[]
static
Initial value:
= {
}
static const char *const five_hundred[]
static const char *const three_hundred[]
Definition: reason_phrase.c:53
static const char *const two_hundred[]
Definition: reason_phrase.c:42
static const char * invalid_hundred[]
Definition: reason_phrase.c:34
static const char *const four_hundred[]
Definition: reason_phrase.c:64
#define BLOCK(m)
static const char *const one_hundred[]
Definition: reason_phrase.c:36

Definition at line 142 of file reason_phrase.c.

const char* const three_hundred[]
static
Initial value:
= {
"Multiple Choices",
"Moved Permanently",
"Moved Temporarily",
"See Other",
"Not Modified",
"Use Proxy",
"Switch Proxy",
"Temporary Redirect"
}

Definition at line 53 of file reason_phrase.c.

const char* const two_hundred[]
static
Initial value:
= {
"OK",
"Created",
"Accepted",
"Non-Authoritative Information",
"No Content",
"Reset Content",
"Partial Content",
"Multi Status"
}

Definition at line 42 of file reason_phrase.c.