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.

Defines

#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.


Define Documentation

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

Definition at line 140 of file reason_phrase.c.

#define NULL   (void*)0

Definition at line 31 of file reason_phrase.c.

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


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 152 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",
  "Unknown",
  "Bandwidth Limit Exceeded",
  "Not Extended"
}

Definition at line 119 of file reason_phrase.c.

const char* four_hundred[] [static]

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.