GNU libmicrohttpd  0.9.5
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 * 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 []
 

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

#define NULL   (void*)0

Definition at line 31 of file reason_phrase.c.

Referenced by add_extra_headers(), add_response_entry(), BASE64Decode(), build_header_response(), call_connection_handler(), check_write_done(), connection_add_header(), create_thread(), digest_calc_response(), do_fd_set(), free_unmarked(), get_next_header_line(), lookup_sub_value(), MHD_accept_connection(), MHD_basic_auth_get_username_password(), MHD_cleanup_connections(), MHD_close_connections(), MHD_connection_close(), MHD_connection_get_pollfd(), MHD_connection_handle_idle(), MHD_connection_handle_read(), MHD_connection_handle_write(), MHD_create_post_processor(), MHD_create_response_from_callback(), MHD_create_response_from_data(), MHD_create_response_from_fd_at_offset(), MHD_del_response_header(), MHD_destroy_post_processor(), MHD_destroy_response(), MHD_digest_auth_check(), MHD_digest_auth_get_username(), MHD_fini(), MHD_get_connection_info(), MHD_get_connection_values(), MHD_get_daemon_info(), MHD_get_fdset(), MHD_get_master(), MHD_get_response_header(), MHD_get_response_headers(), MHD_get_timeout(), MHD_handle_connection(), MHD_init(), MHD_ip_limit_add(), MHD_lookup_connection_value(), MHD_pool_allocate(), MHD_pool_create(), MHD_pool_destroy(), MHD_pool_reallocate(), MHD_pool_reset(), MHD_post_process(), MHD_queue_auth_fail_response(), MHD_queue_response(), MHD_select(), MHD_select_thread(), MHD_set_connection_value(), MHD_start_daemon_va(), MHD_stop_daemon(), MHD_tls_connection_handle_idle(), MHD_tls_connection_handle_read(), MHD_tls_connection_handle_write(), need_100_continue(), parse_arguments(), parse_connection_headers(), parse_cookie_header(), parse_initial_message_line(), parse_options_va(), post_process_multipart(), post_process_urlencoded(), process_broken_line(), process_header_line(), process_request_body(), send_param_adapter(), transmit_error_response(), try_get_value(), try_grow_read_buffer(), try_match_header(), try_ready_chunked_body(), and try_ready_normal_body().

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

Referenced by build_header_response().

Here is the caller graph for this function:

Variable Documentation

const char* 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",
"Bandwidth Limit Exceeded",
"Not Extended"
}

Definition at line 91 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",
"Requested Range Not Satisfiable",
"Expectation Failed",
"Unprocessable Entity",
"Locked",
"Failed Dependency",
"Unordered Collection",
"Upgrade Required",
"Retry With"
}

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* one_hundred[]
static
Initial value:
= {
"Continue",
"Switching Protocols",
"Processing"
}

Definition at line 36 of file reason_phrase.c.

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