GNU libmicrohttpd  0.9.72
reason_phrase.c File Reference

Tables of the string response phrases. More...

#include "internal.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 (enum MHD_HTTP_StatusCode code)
 

Variables

static const char *const invalid_hundred []
 
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 const struct MHD_Reason_Block reasons []
 

Detailed Description

Tables of the string response phrases.

Author
Elliot Glaysher
Christian Grothoff (minor code clean up)
Karlson2k (Evgeny Grin)

Definition in file reason_phrase.c.

Macro Definition Documentation

◆ BLOCK

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

Definition at line 162 of file reason_phrase.c.

◆ NULL

#define NULL   ((void*) 0)

Definition at line 30 of file reason_phrase.c.

Function Documentation

◆ MHD_get_reason_phrase_for()

const char* MHD_get_reason_phrase_for ( enum MHD_HTTP_StatusCode  code)

Definition at line 175 of file reason_phrase.c.

References reasons.

Variable Documentation

◆ five_hundred

const char* const five_hundred[]
static
Initial value:
= {
"Internal Server Error",
"Not Implemented",
"Bad Gateway",
"Service Unavailable",
"Gateway Timeout",
"HTTP Version Not Supported",
"Variant Also Negotiates",
"Insufficient Storage",
"Loop Detected",
"Bandwidth Limit Exceeded",
"Not Extended",
"Network Authentication Required"
}

Definition at line 140 of file reason_phrase.c.

◆ four_hundred

const char* const four_hundred[]
static

Definition at line 85 of file reason_phrase.c.

◆ invalid_hundred

const char* const invalid_hundred[]
static
Initial value:
= {
}
#define NULL
Definition: reason_phrase.c:30

Definition at line 33 of file reason_phrase.c.

◆ one_hundred

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

Definition at line 37 of file reason_phrase.c.

◆ reasons

const struct MHD_Reason_Block reasons[]
static
Initial value:
= {
}
static const char *const two_hundred[]
Definition: reason_phrase.c:43
#define BLOCK(m)
static const char *const five_hundred[]
static const char *const invalid_hundred[]
Definition: reason_phrase.c:33
static const char *const three_hundred[]
Definition: reason_phrase.c:73
static const char *const four_hundred[]
Definition: reason_phrase.c:85
static const char *const one_hundred[]
Definition: reason_phrase.c:37

Definition at line 140 of file reason_phrase.c.

Referenced by MHD_get_reason_phrase_for().

◆ three_hundred

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

Definition at line 73 of file reason_phrase.c.

◆ two_hundred

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

Definition at line 43 of file reason_phrase.c.