GNU libmicrohttpd  0.9.68
reason_phrase.c File Reference
#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 []
 

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(), BASE64Decode(), build_header_response(), call_connection_handler(), call_request_handler(), check_argument_match(), check_response_header_token_ci(), check_write_done(), cleanup_connection(), close_all_connections(), connection_close_error(), connection_update_event_loop_info(), digest_auth_check_all(), digest_calc_response(), find_boundary(), free_unmarked(), get_date_string(), get_master(), get_next_header_line(), internal_add_connection(), internal_get_fdset2(), internal_run_from_select(), internal_suspend_connection_(), keepalive_possible(), lookup_sub_value(), method_string_to_enum(), MHD_action_continue(), MHD_action_parse_post(), MHD_action_process_upload(), MHD_action_suspend(), MHD_add_to_fd_set_(), MHD_basic_auth_get_username_password(), MHD_calloc_(), MHD_check_response_header_token_ci(), MHD_cleanup_connections(), MHD_connection_cleanup_(), 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_update_event_loop_info(), MHD_create_post_processor(), MHD_create_response_from_buffer_with_free_callback(), MHD_create_response_from_callback(), MHD_create_response_from_data(), MHD_create_response_from_fd_at_offset64(), 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_check2(), MHD_digest_auth_check_digest2(), MHD_digest_auth_get_username(), 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_header(), MHD_get_response_headers(), MHD_get_timeout(), MHD_init(), MHD_ip_limit_add(), MHD_ip_limit_del(), MHD_lookup_connection_value(), MHD_lookup_connection_value_n(), MHD_lookup_header_token_ci(), MHD_MD5Final(), MHD_MD5Init(), MHD_MD5Update(), MHD_monotonic_sec_counter(), MHD_monotonic_sec_counter_init(), MHD_parse_arguments_(), MHD_pool_allocate(), MHD_pool_create(), MHD_pool_destroy(), MHD_pool_reallocate(), MHD_pool_reset(), MHD_post_process(), MHD_queue_auth_fail_response2(), MHD_queue_basic_auth_fail_response(), 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_suspended_connections_(), MHD_run_from_select(), MHD_select(), MHD_set_connection_value(), MHD_set_connection_value_n_nocheck_(), MHD_SHA256_update(), 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(), parse_request_headers(), post_process_multipart(), post_process_urlencoded(), process_broken_line(), process_header_line(), process_request_body(), process_value_to_boundary(), response_action(), resume_suspended_connections(), 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(), 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 ( 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 four_hundred[]
Definition: reason_phrase.c:85
static const char *const five_hundred[]
static const char *const one_hundred[]
Definition: reason_phrase.c:37
static const char *const three_hundred[]
Definition: reason_phrase.c:73
static const char *const two_hundred[]
Definition: reason_phrase.c:43
static const char *const invalid_hundred[]
Definition: reason_phrase.c:33
#define BLOCK(m)

Definition at line 164 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.