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 * 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)

Definition in file reason_phrase.c.

Macro Definition Documentation

◆ BLOCK

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

Definition at line 142 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_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(), keepalive_possible(), lookup_sub_value(), MHD_add_to_fd_set_(), MHD_basic_auth_get_username_password(), MHD_cleanup_connections(), MHD_cleanup_upgraded_connection_(), MHD_connection_close_(), MHD_connection_handle_idle(), MHD_connection_handle_write(), MHD_connection_update_event_loop_info(), MHD_create_post_processor(), MHD_create_response_for_upgrade(), 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_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_response_execute_upgrade_(), MHD_run_from_select(), MHD_select(), MHD_select_thread(), MHD_set_connection_value(), MHD_socket_create_listen_(), MHD_start_daemon_va(), MHD_stop_daemon(), MHD_suspend_connection(), MHD_unescape_plus(), MHD_upgrade_action(), 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_connection_upgrade(), 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 155 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 Time-out",
"HTTP Version not supported",
"Variant Also Negotiates",
"Insufficient Storage",
"Unknown",
"Bandwidth Limit Exceeded",
"Not Extended"
}

Definition at line 121 of file reason_phrase.c.

◆ four_hundred

const char* const four_hundred[]
static

Definition at line 66 of file reason_phrase.c.

◆ invalid_hundred

const char* 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 five_hundred[]
static const char *const three_hundred[]
Definition: reason_phrase.c:54
static const char *const two_hundred[]
Definition: reason_phrase.c:43
static const char * invalid_hundred[]
Definition: reason_phrase.c:33
static const char *const four_hundred[]
Definition: reason_phrase.c:66
#define BLOCK(m)
static const char *const one_hundred[]
Definition: reason_phrase.c:37

Definition at line 144 of file reason_phrase.c.

◆ three_hundred

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

Definition at line 54 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"
}

Definition at line 43 of file reason_phrase.c.