GNU libmicrohttpd 1.0.0
Loading...
Searching...
No Matches
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 charMHD_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.

Referenced by add_response_entry(), add_response_entry_n(), add_response_header_connection(), add_user_headers(), buffer_append(), build_connection_chunked_response_footer(), build_header_response(), build_header_response(), calc_userhash(), calculate_nonce(), call_connection_handler(), call_request_handler(), check_argument_match(), check_response_header_token_ci(), check_uri_match(), check_write_done(), cleanup_connection(), cleanup_connection(), close_all_connections(), close_connection(), connection_close_error(), connection_close_error(), connection_maximize_write_buffer(), connection_reset(), connection_shrink_read_buffer(), connection_update_event_loop_info(), del_response_header_connection(), digest_auth_check_all(), digest_auth_check_all_inner(), find_auth_rq_header_(), find_boundary(), free_unmarked(), get_buffer_for_size(), get_date_str(), get_date_string(), get_master(), get_next_header_line(), get_no_space_err_status_code(), get_req_headers(), get_request_line(), get_request_line_inner(), get_rq_nc(), get_rq_param_unquoted_copy_z(), get_rq_uname(), get_rq_uname_type(), get_unquoted_param(), get_unquoted_param_copy(), handle_recv_no_space(), handle_req_chunk_size_line_no_space(), internal_add_connection(), internal_add_connection(), internal_get_fdset2(), internal_get_fdset2(), internal_run_from_select(), internal_run_from_select(), internal_suspend_connection_(), is_param_equal(), is_param_equal_caseless(), is_reply_body_needed(), keepalive_possible(), keepalive_possible(), method_string_to_enum(), MHD_accept_connection(), MHD_action_continue(), MHD_action_parse_post(), MHD_action_process_upload(), MHD_action_suspend(), MHD_add_connection(), MHD_add_response_entry_no_alloc_(), MHD_add_response_entry_no_check_(), MHD_add_response_header(), MHD_add_to_fd_set_(), MHD_add_to_fd_set_(), MHD_basic_auth_get_username_password(), MHD_basic_auth_get_username_password3(), MHD_calloc_(), MHD_check_response_header_token_ci(), MHD_cleanup_connections(), MHD_connection_alloc_memory_(), MHD_connection_cleanup_(), MHD_connection_close_(), MHD_connection_close_(), MHD_connection_get_information_sz(), MHD_connection_handle_idle(), MHD_connection_handle_read(), MHD_connection_handle_write(), MHD_connection_mark_closed_(), MHD_connection_set_initial_state_(), MHD_create_post_processor(), MHD_create_response_empty(), MHD_create_response_from_buffer(), MHD_create_response_from_buffer_copy(), MHD_create_response_from_buffer_static(), MHD_create_response_from_buffer_with_free_callback_cls(), MHD_create_response_from_callback(), MHD_create_response_from_fd_at_offset(), MHD_create_response_from_fd_at_offset64(), MHD_create_response_from_iovec(), MHD_create_response_from_pipe(), MHD_create_thread_(), MHD_create_thread_(), MHD_daemon_close_all_connections_(), MHD_daemon_create(), MHD_daemon_destroy(), MHD_daemon_digest_auth_nc_length(), MHD_daemon_get_timeout(), MHD_daemon_gnutls_credentials(), MHD_daemon_gnutls_key_and_cert_from_callback(), MHD_daemon_quiesce(), MHD_daemon_select_(), MHD_daemon_set_tls_backend(), MHD_daemon_start(), MHD_daemon_tls_key_and_cert_from_memory(), MHD_daemon_tls_mem_dhparams(), MHD_daemon_tls_mem_trust(), MHD_del_response_header(), MHD_destroy_post_processor(), MHD_destroy_response(), MHD_digest_auth_check3(), MHD_digest_auth_check_digest3(), MHD_digest_auth_get_request_info3(), MHD_digest_auth_get_username(), MHD_digest_auth_get_username3(), MHD_get_connection_info(), MHD_get_connection_values(), MHD_get_connection_values_n(), MHD_get_daemon_info(), MHD_get_fdset2(), MHD_get_master(), MHD_get_response_element_n_(), MHD_get_response_header(), MHD_get_response_headers(), MHD_get_timeout64(), MHD_http_unescape(), MHD_init(), MHD_ip_addr_to_key(), MHD_ip_count_lock(), MHD_ip_count_unlock(), MHD_ip_limit_add(), MHD_ip_limit_add(), MHD_ip_limit_del(), MHD_ip_limit_del(), MHD_lookup_connection_value(), MHD_lookup_connection_value_n(), MHD_lookup_header_token_ci(), MHD_lookup_header_token_ci(), MHD_MD5_deinit(), MHD_MD5_init_one_time(), MHD_MD5_update(), MHD_monotonic_msec_counter(), MHD_monotonic_sec_counter(), MHD_monotonic_sec_counter_init(), MHD_parse_arguments_(), MHD_parse_arguments_(), MHD_pool_allocate(), MHD_pool_allocate(), MHD_pool_create(), MHD_pool_deallocate(), MHD_pool_destroy(), MHD_pool_is_resizable_inplace(), MHD_pool_reallocate(), MHD_pool_reset(), MHD_pool_try_alloc(), MHD_post_process(), MHD_queue_auth_fail_response2(), MHD_queue_auth_required_response3(), MHD_queue_basic_auth_required_response3(), MHD_queue_response(), MHD_quiesce_daemon(), MHD_request_get_values(), MHD_request_handle_idle_(), MHD_request_handle_read_(), MHD_request_handle_write_(), MHD_request_lookup_value(), MHD_request_set_value(), MHD_response_del_header(), MHD_response_for_upgrade(), MHD_response_from_buffer(), MHD_response_from_callback(), MHD_response_from_fd(), MHD_response_get_header(), MHD_response_get_headers(), MHD_response_queue_for_destroy(), MHD_resume_connection(), MHD_resume_suspended_connections_(), MHD_run_from_select2(), MHD_select(), MHD_send_hdr_and_body_(), MHD_send_iovec_(), MHD_set_connection_value(), MHD_set_connection_value_n_nocheck_(), MHD_SHA1_update(), MHD_SHA256_deinit(), MHD_SHA256_init_one_time(), MHD_SHA256_update(), MHD_SHA512_256_update(), MHD_socket_create_listen_(), MHD_start_daemon_va(), MHD_stop_daemon(), MHD_str_pct_decode_in_place_lenient_(), MHD_str_pct_decode_lenient_n_(), MHD_str_remove_token_caseless_(), MHD_str_remove_tokens_caseless_(), MHD_suspend_connection(), mhd_tool_get_proc_cpu_count_cpuset_getaffinity_(), mhd_tool_get_proc_cpu_count_sched_getaffinity_(), mhd_tool_get_proc_cpu_count_sched_getaffinity_np_(), mhd_tool_get_proc_cpu_count_w32_(), mhd_tool_get_sys_cpu_count_special_api_(), mhd_tool_get_sys_cpu_count_sysctl_(), mhd_tool_get_sys_cpu_count_sysctl_fallback_(), MHD_unescape_plus(), MHD_update_last_activity_(), MHD_websocket_check_connection_header(), MHD_websocket_check_http_version(), MHD_websocket_check_upgrade_header(), MHD_websocket_check_utf8(), MHD_websocket_check_version_header(), MHD_websocket_create_accept_header(), MHD_websocket_decode(), MHD_websocket_decode_header_complete(), MHD_websocket_decode_payload_complete(), MHD_websocket_encode_binary(), MHD_websocket_encode_close(), MHD_websocket_encode_data(), MHD_websocket_encode_ping_pong(), MHD_websocket_encode_text(), MHD_websocket_free(), MHD_websocket_generate_mask(), MHD_websocket_malloc(), MHD_websocket_realloc(), MHD_websocket_split_close_reason(), MHD_websocket_stream_free(), MHD_websocket_stream_init(), MHD_websocket_stream_init2(), MHD_websocket_stream_invalidate(), MHD_websocket_stream_is_valid(), need_100_continue(), need_100_continue(), new_connection_prepare_(), new_connection_process_(), new_connections_list_process_(), parse_connection_headers(), parse_cookie_header(), parse_http_std_method(), parse_http_version(), parse_initial_message_line(), parse_options_va(), parse_request_headers(), post_process_multipart(), post_process_urlencoded(), process_broken_line(), process_header_line(), process_interim_params(), process_request_body(), process_request_body(), process_request_target(), process_value(), process_value_to_boundary(), queue_auth_required_response3_inner(), response_action(), resume_suspended_connections(), send_iov_emu(), send_redirect_fixed_rq_target(), setup_reply_properties(), setup_thread_pool(), socket_start_extra_buffering(), socket_start_no_buffering(), socket_start_no_buffering_flush(), socket_start_normal_buffering(), stop_workers(), suspend_action(), tdelete(), tdelete(), test_header(), tfind(), thread_main_handle_connection(), transmit_error_response(), transmit_error_response_len(), try_get_value(), try_grow_read_buffer(), try_grow_read_buffer(), try_match_header(), try_ready_chunked_body(), try_ready_chunked_body(), try_ready_normal_body(), try_ready_normal_body(), and tsearch().

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 MHD_HTTP_OK, and 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 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[]
#define BLOCK(m)
static const char *const five_hundred[]
static const char *const invalid_hundred[]
static const char *const three_hundred[]
static const char *const four_hundred[]
static const char *const one_hundred[]

Definition at line 164 of file reason_phrase.c.

Referenced by MHD_get_reason_phrase_for(), MHD_get_reason_phrase_for(), and MHD_get_reason_phrase_len_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.