GNU libmicrohttpd  0.9.29
reason_phrase.c File Reference

Tables of the string response phrases. More...

#include "platform.h"
#include "microhttpd.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 *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 163 of file reason_phrase.c.

◆ NULL

#define NULL   ((void*)0)

Definition at line 31 of file reason_phrase.c.

Referenced by add_response_entry(), BASE64Decode(), build_header_response(), call_connection_handler(), call_handlers(), check_argument_match(), check_write_done(), cleanup_connection(), close_all_connections(), connection_close_error(), digest_calc_response(), do_read(), do_write(), find_boundary(), free_unmarked(), get_date_string(), get_next_header_line(), internal_add_connection(), internal_get_fdset2(), internal_run_from_select(), internal_suspend_connection_(), keepalive_possible(), lookup_sub_value(), MHD_add_to_fd_set_(), MHD_basic_auth_get_username_password(), MHD_calloc_(), MHD_check_response_header_token_ci(), MHD_cleanup_connections(), MHD_connection_close_(), MHD_connection_handle_idle(), MHD_connection_handle_write(), MHD_connection_update_event_loop_info(), MHD_create_post_processor(), MHD_create_response_from_buffer(), MHD_create_response_from_callback(), MHD_create_response_from_data(), MHD_create_response_from_fd_at_offset64(), MHD_create_thread_(), MHD_del_response_header(), MHD_destroy_post_processor(), MHD_destroy_response(), MHD_digest_auth_check(), MHD_digest_auth_get_username(), MHD_get_connection_info(), MHD_get_connection_values(), MHD_get_daemon_info(), MHD_get_fdset2(), MHD_get_master(), MHD_get_response_header(), MHD_get_response_headers(), MHD_get_timeout(), MHD_init(), MHD_ip_limit_add(), MHD_ip_limit_del(), MHD_is_feature_supported(), MHD_lookup_connection_value(), MHD_lookup_header_token_ci(), MHD_monotonic_sec_counter(), MHD_monotonic_sec_counter_init(), MHD_parse_arguments_(), MHD_poll(), 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_basic_auth_fail_response(), MHD_queue_response(), MHD_quiesce_daemon(), MHD_run_from_select(), MHD_select(), MHD_set_connection_value(), MHD_socket_create_listen_(), MHD_start_daemon_va(), MHD_stop_daemon(), MHD_suspend_connection(), MHD_unescape_plus(), need_100_continue(), 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(), process_value_to_boundary(), resume_suspended_connections(), send_param_adapter(), socket_start_no_buffering(), socket_start_no_buffering_flush(), tdelete(), test_header(), tfind(), thread_main_handle_connection(), transmit_error_response(), try_get_value(), try_grow_read_buffer(), try_match_header(), try_ready_chunked_body(), try_ready_normal_body(), and tsearch().

Function Documentation

◆ MHD_get_reason_phrase_for()

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

Referenced by build_header_response().

Here is the caller graph for this function:

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

◆ four_hundred

const char* const four_hundred[]
static

Definition at line 86 of file reason_phrase.c.

◆ invalid_hundred

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

Definition at line 34 of file reason_phrase.c.

◆ one_hundred

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

Definition at line 38 of file reason_phrase.c.

◆ reasons

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

Definition at line 165 of file reason_phrase.c.

◆ 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 74 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 44 of file reason_phrase.c.