#include "ap_config.h"
#include "ap_mmn.h"
#include "ap_release.h"
#include "apr_general.h"
#include "apr_tables.h"
#include "apr_pools.h"
#include "apr_time.h"
#include "apr_network_io.h"
#include "apr_buckets.h"
#include "os.h"
#include "pcreposix.h"
#include "apr_uri.h"
#include <string.h>
Include dependency graph for httpd.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | AP_SERVER_PROTOCOL "HTTP/1.1" |
| #define | AP_DEFAULT_INDEX "index.html" |
| #define | DEFAULT_CONTENT_TYPE "text/plain" |
| #define | AP_TYPES_CONFIG_FILE "conf/mime.types" |
| #define | DOCTYPE_HTML_2_0 |
| #define | DOCTYPE_HTML_3_2 |
| #define | DOCTYPE_HTML_4_0S |
| #define | DOCTYPE_HTML_4_0T |
| #define | DOCTYPE_HTML_4_0F |
| #define | DOCTYPE_XHTML_1_0S |
| #define | DOCTYPE_XHTML_1_0T |
| #define | DOCTYPE_XHTML_1_0F |
| #define | HTTP_VERSION(major, minor) (1000*(major)+(minor)) |
| #define | HTTP_VERSION_MAJOR(number) ((number)/1000) |
| #define | HTTP_VERSION_MINOR(number) ((number)%1000) |
| #define | DEFAULT_HTTP_PORT 80 |
| #define | DEFAULT_HTTPS_PORT 443 |
| #define | ap_is_default_port(port, r) ((port) == ap_default_port(r)) |
| #define | ap_default_port(r) ap_run_default_port(r) |
| #define | ap_http_method(r) ap_run_http_method(r) |
| #define | MAX_STRING_LEN HUGE_STRING_LEN |
| #define | HUGE_STRING_LEN 8192 |
| #define | AP_IOBUFSIZE 8192 |
| #define | AP_MAX_REG_MATCH 10 |
| #define | AP_MAX_SENDFILE 16777216 |
| #define | APEXIT_OK 0x0 |
| #define | APEXIT_INIT 0x2 |
| #define | APEXIT_CHILDINIT 0x3 |
| #define | APEXIT_CHILDSICK 0x7 |
| #define | APEXIT_CHILDFATAL 0xf |
| #define | AP_CORE_DECLARE AP_DECLARE |
| #define | AP_CORE_DECLARE_NONSTD AP_DECLARE_NONSTD |
| #define | DECLINED -1 |
| #define | DONE -2 |
| #define | OK 0 |
| #define | RESPONSE_CODES 57 |
| #define | HTTP_CONTINUE 100 |
| #define | HTTP_SWITCHING_PROTOCOLS 101 |
| #define | HTTP_PROCESSING 102 |
| #define | HTTP_OK 200 |
| #define | HTTP_CREATED 201 |
| #define | HTTP_ACCEPTED 202 |
| #define | HTTP_NON_AUTHORITATIVE 203 |
| #define | HTTP_NO_CONTENT 204 |
| #define | HTTP_RESET_CONTENT 205 |
| #define | HTTP_PARTIAL_CONTENT 206 |
| #define | HTTP_MULTI_STATUS 207 |
| #define | HTTP_MULTIPLE_CHOICES 300 |
| #define | HTTP_MOVED_PERMANENTLY 301 |
| #define | HTTP_MOVED_TEMPORARILY 302 |
| #define | HTTP_SEE_OTHER 303 |
| #define | HTTP_NOT_MODIFIED 304 |
| #define | HTTP_USE_PROXY 305 |
| #define | HTTP_TEMPORARY_REDIRECT 307 |
| #define | HTTP_BAD_REQUEST 400 |
| #define | HTTP_UNAUTHORIZED 401 |
| #define | HTTP_PAYMENT_REQUIRED 402 |
| #define | HTTP_FORBIDDEN 403 |
| #define | HTTP_NOT_FOUND 404 |
| #define | HTTP_METHOD_NOT_ALLOWED 405 |
| #define | HTTP_NOT_ACCEPTABLE 406 |
| #define | HTTP_PROXY_AUTHENTICATION_REQUIRED 407 |
| #define | HTTP_REQUEST_TIME_OUT 408 |
| #define | HTTP_CONFLICT 409 |
| #define | HTTP_GONE 410 |
| #define | HTTP_LENGTH_REQUIRED 411 |
| #define | HTTP_PRECONDITION_FAILED 412 |
| #define | HTTP_REQUEST_ENTITY_TOO_LARGE 413 |
| #define | HTTP_REQUEST_URI_TOO_LARGE 414 |
| #define | HTTP_UNSUPPORTED_MEDIA_TYPE 415 |
| #define | HTTP_RANGE_NOT_SATISFIABLE 416 |
| #define | HTTP_EXPECTATION_FAILED 417 |
| #define | HTTP_UNPROCESSABLE_ENTITY 422 |
| #define | HTTP_LOCKED 423 |
| #define | HTTP_FAILED_DEPENDENCY 424 |
| #define | HTTP_UPGRADE_REQUIRED 426 |
| #define | HTTP_INTERNAL_SERVER_ERROR 500 |
| #define | HTTP_NOT_IMPLEMENTED 501 |
| #define | HTTP_BAD_GATEWAY 502 |
| #define | HTTP_SERVICE_UNAVAILABLE 503 |
| #define | HTTP_GATEWAY_TIME_OUT 504 |
| #define | HTTP_VERSION_NOT_SUPPORTED 505 |
| #define | HTTP_VARIANT_ALSO_VARIES 506 |
| #define | HTTP_INSUFFICIENT_STORAGE 507 |
| #define | HTTP_NOT_EXTENDED 510 |
| #define | ap_is_HTTP_INFO(x) (((x) >= 100)&&((x) < 200)) |
| #define | ap_is_HTTP_SUCCESS(x) (((x) >= 200)&&((x) < 300)) |
| #define | ap_is_HTTP_REDIRECT(x) (((x) >= 300)&&((x) < 400)) |
| #define | ap_is_HTTP_ERROR(x) (((x) >= 400)&&((x) < 600)) |
| #define | ap_is_HTTP_CLIENT_ERROR(x) (((x) >= 400)&&((x) < 500)) |
| #define | ap_is_HTTP_SERVER_ERROR(x) (((x) >= 500)&&((x) < 600)) |
| #define | ap_status_drops_connection(x) |
| #define | M_GET 0 |
| #define | M_PUT 1 |
| #define | M_POST 2 |
| #define | M_DELETE 3 |
| #define | M_CONNECT 4 |
| #define | M_OPTIONS 5 |
| #define | M_TRACE 6 |
| #define | M_PATCH 7 |
| #define | M_PROPFIND 8 |
| #define | M_PROPPATCH 9 |
| #define | M_MKCOL 10 |
| #define | M_COPY 11 |
| #define | M_MOVE 12 |
| #define | M_LOCK 13 |
| #define | M_UNLOCK 14 |
| #define | M_VERSION_CONTROL 15 |
| #define | M_CHECKOUT 16 |
| #define | M_UNCHECKOUT 17 |
| #define | M_CHECKIN 18 |
| #define | M_UPDATE 19 |
| #define | M_LABEL 20 |
| #define | M_REPORT 21 |
| #define | M_MKWORKSPACE 22 |
| #define | M_MKACTIVITY 23 |
| #define | M_BASELINE_CONTROL 24 |
| #define | M_MERGE 25 |
| #define | M_INVALID 26 |
| #define | METHODS 64 |
| #define | AP_METHOD_BIT ((apr_int64_t)1) |
| #define | CGI_MAGIC_TYPE "application/x-httpd-cgi" |
| #define | INCLUDES_MAGIC_TYPE "text/x-server-parsed-html" |
| #define | INCLUDES_MAGIC_TYPE3 "text/x-server-parsed-html3" |
| #define | DIR_MAGIC_TYPE "httpd/unix-directory" |
| #define | LF 10 |
| #define | CR 13 |
| #define | CRLF "\015\012" |
| #define | REQUEST_NO_BODY 0 |
| #define | REQUEST_CHUNKED_ERROR 1 |
| #define | REQUEST_CHUNKED_DECHUNK 2 |
| #define | AP_REQ_ACCEPT_PATH_INFO 0 |
| #define | AP_REQ_REJECT_PATH_INFO 1 |
| #define | AP_REQ_DEFAULT_PATH_INFO 2 |
| #define | PROXYREQ_NONE 0 |
| #define | PROXYREQ_PROXY 1 |
| #define | PROXYREQ_REVERSE 2 |
| #define | PROXYREQ_RESPONSE 3 |
| #define | DEFAULT_VHOST_ADDR 0xfffffffful |
| #define | ap_escape_uri(ppool, path) ap_os_escape_path(ppool,path,1) |
| #define | ap_assert(exp) ((exp) ? (void)0 : ap_log_assert(#exp,__FILE__,__LINE__)) |
| #define | AP_DEBUG_ASSERT(exp) ((void)0) |
| #define | SIGSTOP_DETACH 1 |
| #define | SIGSTOP_MAKE_CHILD 2 |
| #define | SIGSTOP_SPAWN_CHILD 4 |
| #define | SIGSTOP_PIPED_LOG_SPAWN 8 |
| #define | SIGSTOP_CGI_CHILD 16 |
| #define | RAISE_SIGSTOP(x) |
| #define | strtoul strtoul_is_not_a_portable_function_use_strtol_instead |
| #define | ap_strchr(s, c) strchr(s, c) |
| #define | ap_strchr_c(s, c) strchr(s, c) |
| #define | ap_strrchr(s, c) strrchr(s, c) |
| #define | ap_strrchr_c(s, c) strrchr(s, c) |
| #define | ap_strstr(s, c) strstr(s, c) |
| #define | ap_strstr_c(s, c) strstr(s, c) |
| #define | AP_NORESTART APR_OS_START_USEERR + 1 |
Typedefs | |
| typedef ap_method_list_t | ap_method_list_t |
| typedef process_rec | process_rec |
| typedef server_rec | server_rec |
| typedef conn_rec | conn_rec |
| typedef request_rec | request_rec |
| typedef server_addr_rec | server_addr_rec |
| typedef core_output_filter_ctx | core_output_filter_ctx_t |
| typedef core_filter_ctx | core_ctx_t |
| typedef core_net_rec | core_net_rec |
Enumerations | |
| enum | ap_conn_keepalive_e { AP_CONN_UNKNOWN, AP_CONN_CLOSE, AP_CONN_KEEPALIVE } |
Functions | |
| AP_DECLARE (const char *) ap_get_server_version(void) | |
| AP_DECLARE (void) ap_add_version_component(apr_pool_t *pconf | |
| AP_DECLARE (char *) ap_field_noparam(apr_pool_t *p | |
| AP_DECLARE (int) ap_find_list_item(apr_pool_t *p | |
| AP_DECLARE (apr_size_t) ap_escape_errorlog_item(char *dest | |
| AP_DECLARE (regex_t *) ap_pregcomp(apr_pool_t *p | |
| AP_DECLARE (size_t) ap_regerror(int errcode | |
| char * | ap_get_local_host (apr_pool_t *p) |
| const char int nLine | __attribute__ ((noreturn)) |
Variables | |
| const char * | component |
| const char * | intype |
| apr_time_t | t |
| apr_time_t const char * | fmt |
| apr_time_t const char int | gmt |
| const char ** | line |
| const char char | stop |
| const char * | word |
| int * | len |
| const char ** | field |
| const char const char * | tok |
| const char ** | accept_line |
| const char int | accept_white |
| const char * | s |
| const char * | path |
| const char int | partial |
| const char * | str |
| const char * | source |
| const char apr_size_t | buflen |
| const char * | hostname |
| const char apr_port_t | port |
| const char apr_port_t const request_rec * | r |
| const char int | n |
| const char * | dir |
| const char const char * | f |
| const char * | expected |
| const char * | s2 |
| const char * | prefix |
| const char * | bufcoded |
| char * | string |
| const char * | pattern |
| const char int | cflags |
| regex_t * | reg |
| const char size_t | nmatch |
| const char size_t regmatch_t | pmatch [] |
| const char size_t regmatch_t int | eflags |
| const regex_t * | preg |
| const regex_t char * | errbuf |
| const regex_t char size_t | errbuf_size |
| const char * | input |
| char | c |
| const char * | instring |
| const char * | name |
| const char * | szFile |
Definition in file httpd.h.
|
|
Definition at line 1634 of file httpd.h. Referenced by alloc_listener(), ap_init_scoreboard(), ap_proxy_send_dir_filter(), define_filter(), get_addresses(), init_ext_filter_process(), init_server_config(), is_header_regex(), log_after(), log_before(), log_escape(), mpm_nt_eventlog_stderr_open(), set_and_comp_regexp(), and set_resource_limits(). |
|
|
|
|
|
|
|
|
Redefine assert() to something more useful for an Apache... Use ap_assert() if the condition should always be checked. Use AP_DEBUG_ASSERT() if the condition should only be checked when AP_DEBUG is defined. Definition at line 1647 of file httpd.h. Referenced by AP_CORE_DECLARE_NONSTD(), AP_DECLARE(), ap_http_filter(), ap_queue_info_set_idle(), ap_queue_info_wait_for_idler(), ap_queue_push(), cgi_handler(), core_input_filter(), ef_output_filter(), listener_thread(), store_body(), worker_stack_pop(), and worker_thread(). |
|
|
Define this to be what your HTML directory content files are called Definition at line 202 of file httpd.h. Referenced by fixup_dir(). |
|
|
Get the default port for a request (which depends on the scheme).
Definition at line 282 of file httpd.h. Referenced by AP_DECLARE(), authenticate_digest_user(), log_server_port(), proxy_detect(), and reduce_uri(). |
|
|
Definition at line 1336 of file httpd.h. Referenced by action_handler(), add_ssi_vars(), AP_DECLARE(), ap_proxy_send_dir_filter(), check_speling(), dav_xml_escape_uri(), escape_absolute_uri(), fixup_dir(), handle_echo(), handle_map_file(), hook_fixup(), hook_uri2file(), index_directory(), rewrite_mapfunc_escape(), and try_alias_list(). |
|
|
Get the scheme for a request.
Definition at line 288 of file httpd.h. Referenced by AP_CORE_DECLARE(), AP_DECLARE(), DAV_DECLARE(), fully_qualify_uri(), hook_uri2file(), proxy_detect(), reduce_uri(), and ssl_var_lookup(). |
|
|
The size of the server's internal read-write buffers Definition at line 295 of file httpd.h. Referenced by create_proxy_config(), do_emit_plain(), r_flush(), and set_io_buffer_size(). |
|
|
Check whether port is the default port for the request r.
Definition at line 277 of file httpd.h. Referenced by AP_DECLARE(), ap_proxy_http_determine_connection(), fully_qualify_uri(), hook_uri2file(), and ssl_hook_ReadReq(). |
|
|
The max number of regex captures that can be expanded by ap_pregsub Definition at line 298 of file httpd.h. Referenced by apply_rewrite_cond(), apply_rewrite_rule(), do_expand(), match_headers(), and try_alias_list(). |
|
|
APR_HAS_LARGE_FILES introduces the problem of spliting sendfile into mutiple buckets, no greater than MAX(apr_size_t), and more granular than that in case the brigade code/filters attempt to read it directly. ### 16mb is an invention, no idea if it is reasonable. Definition at line 306 of file httpd.h. Referenced by asis_handler(), cache_the_file(), default_handler(), and ServerSupportFunction(). |
|
|
Definition at line 1733 of file httpd.h. Referenced by AP_DECLARE(), and child_main(). |
|
|
default HTTP Server protocol Definition at line 195 of file httpd.h. Referenced by ap_http_filter(), and basic_http_header_check(). |
|
|
use this instead of strchr Definition at line 1719 of file httpd.h. Referenced by ap_ssi_get_tag_and_value(), dav_parse_range(), expires_filter(), fixup_redir(), hook_fixup(), and lookup_map_program(). |
|
|
use this instead of strchr Definition at line 1721 of file httpd.h. Referenced by add_desc(), AP_CORE_DECLARE(), AP_DECLARE(), ap_proxy_ftp_canon(), ap_proxy_http_canon(), ap_set_byterange(), ap_ssi_parse_string(), CACHE_DECLARE(), cmd_rewritemap(), create_argv(), dav_set_name(), dav_xml_escape_uri(), default_build_command(), do_negotiation(), get_server_name_for_url(), get_y_coord(), getsfunc_STRING(), imap_url(), is_only_below(), prefix_stat(), PROXY_DECLARE(), proxy_handler(), server_hostname_port(), set_cookie_domain(), set_error_document(), ssl_cmd_SSLSessionCache(), and translate_userdir(). |
|
|
use this instead of strrchr |
|
|
use this instead of strrchr Definition at line 1725 of file httpd.h. Referenced by APR_HOOK_STRUCT(), dirsection(), filesection(), find_ct(), find_desc(), proxysection(), set_expiresbytype(), start_ifdefine(), start_ifmod(), urlsection(), and virtualhost_section(). |
|
|
use this instead of strrstr |
|
|
use this instead of strrstr Definition at line 1729 of file httpd.h. Referenced by AP_DECLARE(), dav_fs_parse_locktoken(), find_desc(), log_cookie(), proxy_match_word(), status_handler(), and use_range_x(). |
|
|
The name of the MIME types file Definition at line 217 of file httpd.h. Referenced by mime_post_config(), and show_compile_settings(). |
|
|
A fatal error, resulting in the whole server aborting. If a child exits with this error, the parent process considers this a server-wide fatal error and aborts. Definition at line 330 of file httpd.h. Referenced by accept_mutex_off(), accept_mutex_on(), ap_mpm_child_main(), ap_mpm_run(), child_main(), create_listener_thread(), make_worker(), master_main(), server_main_loop(), start_threads(), and worker_main(). |
|
|
The child died during its init sequence |
|
|
The child exited due to a resource shortage. The parent should limit the rate of forking until the situation is resolved. Definition at line 324 of file httpd.h. Referenced by ap_mpm_run(), child_main(), and server_main_loop(). |
|
|
A fatal error arising during the server's init sequence |
|
|
a normal exit |
|
|
carrige return Definition at line 575 of file httpd.h. Referenced by AP_DECLARE(), find_title(), form_header_field(), and read_table(). |
|
|
carrige return /Line Feed Combo Definition at line 577 of file httpd.h. Referenced by AP_CORE_DECLARE_NONSTD(), AP_DECLARE_NONSTD(), ap_http_filter(), ap_proxy_connect_handler(), ap_proxy_ftp_handler(), ap_proxy_http_request(), ap_proxy_send_dir_filter(), basic_http_header(), chunk_filter(), form_header_field(), ftp_get_PWD(), ftp_set_TYPE(), get_canned_error_string(), pass_request(), perchild_header_field(), send_all_header_fields(), ssl_io_filter_Upgrade(), store_table(), and terminate_header(). |
|
|
|
Define this to be what type you'd like returned for files with unknown suffixes.
|
|
|
default HTTP Port Definition at line 268 of file httpd.h. Referenced by ap_mpm_run(), ap_proxy_http_request(), http_port(), ssl_init_CheckServers(), and ssl_util_vhostid(). |
|
|
default HTTPS Port Definition at line 270 of file httpd.h. Referenced by nwssl_hook_default_port(), ssl_init_CheckServers(), and ssl_util_vhostid(). |
|
|
The address 255.255.255.255, when used as a virtualhost address, will become the "default" server when the ip doesn't match other vhosts. Definition at line 1007 of file httpd.h. Referenced by dump_a_vhost(). |
|
|
Value: "<!DOCTYPE HTML PUBLIC \"-//IETF//" \ "DTD HTML 2.0//EN\">\n" |
|
|
Value: "<!DOCTYPE HTML PUBLIC \"-//W3C//" \ "DTD HTML 3.2 Final//EN\">\n" Definition at line 227 of file httpd.h. Referenced by ap_proxy_send_dir_filter(), display_info(), emit_preamble(), menu_header(), status_handler(), util_ldap_handler(), and x_handler(). |
|
|
Value: "<!DOCTYPE HTML PUBLIC \"-//W3C//" \ "DTD HTML 4.0 Frameset//EN\"\n" \ "\"http://www.w3.org/TR/REC-html40/frameset.dtd\">\n" |
|
|
Value: "<!DOCTYPE HTML PUBLIC \"-//W3C//" \ "DTD HTML 4.0//EN\"\n" \ "\"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" |
|
|
Value: "<!DOCTYPE HTML PUBLIC \"-//W3C//" \ "DTD HTML 4.0 Transitional//EN\"\n" \ "\"http://www.w3.org/TR/REC-html40/loose.dtd\">\n" |
|
|
Value: "<!DOCTYPE html PUBLIC \"-//W3C//" \ "DTD XHTML 1.0 Frameset//EN\"\n" \ "\"http://www.w3.org/TR/xhtml1/DTD/" \ "xhtml1-frameset.dtd\">" |
|
|
Value: "<!DOCTYPE ht |