#include "ap_config.h"#include "ap_mmn.h"#include "ap_release.h"#include "apr.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 "apr_poll.h"#include "os.h"#include "ap_regex.h"#include "apr_uri.h"#include <string.h>Go to the source code of this file.
Classes | |
| struct | ap_version_t |
| The numeric version information is broken out into fields within this structure. More... | |
| struct | ap_method_list_t |
| Structure for handling HTTP methods. More... | |
| struct | htaccess_result |
| This represents the result of calling htaccess; these are cached for each request. More... | |
| struct | process_rec |
| A structure that represents one process. More... | |
| struct | request_rec |
| A structure that represents the current request. More... | |
| struct | conn_rec |
| Structure to store things which are per connection. More... | |
| struct | conn_state_t |
| A structure to contain connection state information. More... | |
| struct | server_addr_rec |
| A structure to be used for Per-vhost config. More... | |
| struct | server_rec |
| A structure to store information for each virtual server. More... | |
| struct | core_output_filter_ctx |
| struct | core_filter_ctx |
| struct | core_net_rec |
| #define | AP_SERVER_PROTOCOL "HTTP/1.1" |
| #define | AP_DEFAULT_INDEX "index.html" |
| #define | DEFAULT_CONTENT_TYPE "text/plain" |
| #define | NO_CONTENT_TYPE "none" |
| #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_scheme(r) ap_run_http_scheme(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_is_HTTP_VALID_RESPONSE(x) (((x) >= 100)&&((x) < 600)) |
| #define | ap_status_drops_connection(x) |
| AP_DECLARE (void) ap_get_server_revision(ap_version_t *version) | |
| const char * | component |
| apr_time_t | t |
| const char * | prefix |
Defines | |
| #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 conn_state_t | conn_state_t |
| 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 } |
| Enumeration of connection keepalive options. More... | |
| enum | conn_state_e { CONN_STATE_CHECK_REQUEST_LINE_READABLE, CONN_STATE_READ_REQUEST_LINE, CONN_STATE_LINGER } |
Functions | |
| char * | ap_get_local_host (apr_pool_t *p) |
| const char int nLine | __attribute__ ((noreturn)) |
Variables | |
| const char * | intype |
| 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 * | bufcoded |
| char * | string |
| const char * | pattern |
| const char int | cflags |
| ap_regex_t * | reg |
| const char * | input |
| const char const char size_t | nmatch |
| const char const char size_t ap_regmatch_t | pmatch [] |
| char | c |
| const char * | instring |
| const char const char * | delim |
| const char * | name |
| const char * | szFile |
|
|
For internal use only. modules should not use functions marked AP_CORE_DECLARE |
|
|
For internal use only. modules should not use functions marked AP_CORE_DECLARE_NONSTD |
|
|
Define this to be what your HTML directory content files are called Definition at line 223 of file httpd.h. Referenced by fixup_dir(). |
|
|
Get the default port for a request (which depends on the scheme).
Definition at line 310 of file httpd.h. Referenced by AP_DECLARE(), authenticate_digest_user(), log_server_port(), proxy_detect(), and reduce_uri(). |
|
|
Get the scheme for a request.
Definition at line 315 of file httpd.h. Referenced by AP_CORE_DECLARE(), AP_DECLARE(), cache_generate_key_default(), 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 324 of file httpd.h. Referenced by create_proxy_config(), do_emit_plain(), r_flush(), set_io_buffer_size(), and set_worker_param(). |
|
|
Check whether port is the default port for the request r.
Definition at line 305 of file httpd.h. Referenced by AP_DECLARE(), ap_proxy_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 327 of file httpd.h. Referenced by apply_rewrite_cond(), apply_rewrite_rule(), do_expand(), do_pattmatch(), get_include_var(), match_headers(), proxy_trans(), re_check(), 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 335 of file httpd.h. Referenced by asis_handler(), cache_the_file(), default_handler(), and spool_reqbody_cl(). |
|
|
default HTTP Server protocol Definition at line 216 of file httpd.h. Referenced by ap_http_filter(), and basic_http_header_check(). |
|
|
The name of the MIME types file Definition at line 246 of file httpd.h. Referenced by mime_post_config(), show_compile_settings(), and show_server_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 359 of file httpd.h. Referenced by accept_mutex_off(), accept_mutex_on(), ap_mpm_child_main(), ap_mpm_run(), child_main(), 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 353 of file httpd.h. Referenced by ap_mpm_run(), child_main(), create_listener_thread(), server_main_loop(), and start_threads(). |
|
|
A fatal error arising during the server's init sequence |
|
|
a normal exit |
|
|
|
Define this to be what type you'd like returned for files with unknown suffixes.
|
|
|
default HTTP Port Definition at line 296 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 298 of file httpd.h. Referenced by http_port(), nwssl_hook_default_port(), ssl_init_CheckServers(), and ssl_util_vhostid(). |
|
|
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 256 of file httpd.h. Referenced by balancer_handler(), emit_preamble(), menu_header(), proxy_send_dir_filter(), 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 html PUBLIC \"-//W3C//" \ "DTD XHTML 1.0 Strict//EN\"\n" \ "\"http://www.w3.org/TR/xhtml1/DTD/" \ "xhtml1-strict.dtd\">\n" |
|
|
Value: "<!DOCTYPE html PUBLIC \"-//W3C//" \ "DTD XHTML 1.0 Transitional//EN\"\n" \ "\"http://www.w3.org/TR/xhtml1/DTD/" \ "xhtml1-transitional.dtd\">\n" Definition at line 276 of file httpd.h. Referenced by display_info(), and emit_preamble(). |
|
|
Module has served the response completely
Definition at line 470 of file httpd.h. Referenced by AP_CORE_DECLARE(), AP_DECLARE(), AP_DECLARE_NONSTD(), ap_open_logs(), ap_process_request(), ap_proxy_ajp_request(), ap_proxy_http_process_response(), core_pre_connection(), dav_error_response(), dav_error_response_tag(), dav_handle_err(), dav_method_checkout(), dav_method_get(), dav_method_label(), dav_method_lock(), dav_method_merge(), dav_method_options(), dav_method_propfind(), dav_method_proppatch(), dav_method_report(), dav_method_search(), dav_method_uncheckout(), dav_method_update(), dav_method_vsn_control(), fsmagic(), http_send_options(), magic_process(), mem_cache_post_config(), open_error_log(), open_multi_logs(), prefork_open_logs(), process_socket(), proxy_ftp_handler(), util_ldap_post_config(), and worker_open_logs(). |
|
|
Internal representation for a HTTP protocol number, e.g., HTTP/1.1 Definition at line 287 of file httpd.h. Referenced by AP_CORE_DECLARE_NONSTD(), ap_http_filter(), ap_read_request(), APR_HOOK_STRUCT(), basic_http_header_check(), do_negotiation(), and read_request_line(). |
|
|
Major part of HTTP protocol Definition at line 289 of file httpd.h. Referenced by ap_proxy_http_process_response(), and ap_proxy_http_request(). |
|
|
Minor part of HTTP protocol Definition at line 291 of file httpd.h. Referenced by ap_proxy_http_process_response(), and ap_proxy_http_request(). |
|
|
The length of a Huge string Definition at line 321 of file httpd.h. Referenced by ap_core_input_filter(), AP_DECLARE(), ap_proxy_http_process_response(), APR_DECLARE_NONSTD(), cgi_handler(), cgid_handler(), htdbm_list(), log_script(), log_script_err(), proxy_connect_handler(), proxy_ftp_command(), ServerSupportFunction(), spool_reqbody_cl(), stream_reqbody_chunked(), stream_reqbody_cl(), test_bigfprintf(), vhost_alias_checkspace(), and vhost_alias_interpolate(). |
|
|
The default string length Definition at line 318 of file httpd.h. Referenced by add_password(), AP_DECLARE(), ap_proxy_read_headers(), authnz_ldap_post_config(), cgi_handler(), cgid_handler(), check_args(), check_password(), dump_a_vhost(), find_title(), get_header_line(), get_realm_hash(), getpass(), groups_for_user(), handle_exec(), htdbm_list(), htdbm_make(), htdbm_verify(), imap_handler_internal(), log_error_core(), log_request_time_custom(), main(), mime_post_config(), mkrecord(), output_directories(), proxy_ftp_handler(), read_array(), read_table(), read_type_map(), scan_meta_file(), ssl_pphrase_Handle(), ssl_util_readfilter(), and usage(). |
|
|
NO_CONTENT_TYPE is an alternative DefaultType value that suppresses setting any default type when there's no information (e.g. a proxy). Definition at line 241 of file httpd.h. Referenced by AP_CORE_DECLARE_NONSTD(). |
|