36 #ifndef APACHE_HTTPD_H
37 #define APACHE_HTTPD_H
83 #define HTTPD_ROOT "/os2httpd"
86 #define HTTPD_ROOT "/apache"
87 #elif defined (NETWARE)
89 #define HTTPD_ROOT "/apache"
92 #define HTTPD_ROOT "/usr/local/apache"
108 #ifndef DOCUMENT_LOCATION
111 #define DOCUMENT_LOCATION HTTPD_ROOT "/docs"
114 #define DOCUMENT_LOCATION HTTPD_ROOT "/htdocs"
119 #ifndef DYNAMIC_MODULE_LIMIT
120 #define DYNAMIC_MODULE_LIMIT 256
124 #define DEFAULT_ADMIN "[no address given]"
127 #ifndef DEFAULT_ERRORLOG
128 #if defined(OS2) || defined(WIN32)
129 #define DEFAULT_ERRORLOG "logs/error.log"
131 #define DEFAULT_ERRORLOG "logs/error_log"
136 #ifndef DEFAULT_ACCESS_FNAME
139 #define DEFAULT_ACCESS_FNAME "htaccess"
141 #define DEFAULT_ACCESS_FNAME ".htaccess"
146 #ifndef SERVER_CONFIG_FILE
147 #define SERVER_CONFIG_FILE "conf/httpd.conf"
152 #define DEFAULT_PATH "/bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bin"
157 #define SUEXEC_BIN HTTPD_ROOT "/bin/suexec"
161 #ifndef DEFAULT_TIMEOUT
162 #define DEFAULT_TIMEOUT 60
166 #ifndef DEFAULT_KEEPALIVE_TIMEOUT
167 #define DEFAULT_KEEPALIVE_TIMEOUT 5
171 #ifndef DEFAULT_KEEPALIVE
172 #define DEFAULT_KEEPALIVE 100
194 #ifndef DEFAULT_LIMIT_REQUEST_LINE
195 #define DEFAULT_LIMIT_REQUEST_LINE 8190
198 #ifndef DEFAULT_LIMIT_REQUEST_FIELDSIZE
199 #define DEFAULT_LIMIT_REQUEST_FIELDSIZE 8190
202 #ifndef DEFAULT_LIMIT_REQUEST_FIELDS
203 #define DEFAULT_LIMIT_REQUEST_FIELDS 100
206 #ifndef DEFAULT_LIMIT_BLANK_LINES
207 #define DEFAULT_LIMIT_BLANK_LINES 10
214 #define DEFAULT_ADD_DEFAULT_CHARSET_NAME "iso-8859-1"
217 #define AP_SERVER_PROTOCOL "HTTP/1.1"
223 #ifndef AP_DEFAULT_INDEX
224 #define AP_DEFAULT_INDEX "index.html"
228 #ifndef AP_TYPES_CONFIG_FILE
229 #define AP_TYPES_CONFIG_FILE "conf/mime.types"
236 #define DOCTYPE_HTML_2_0 "<!DOCTYPE HTML PUBLIC \"-//IETF//" \
237 "DTD HTML 2.0//EN\">\n"
239 #define DOCTYPE_HTML_3_2 "<!DOCTYPE HTML PUBLIC \"-//W3C//" \
240 "DTD HTML 3.2 Final//EN\">\n"
242 #define DOCTYPE_HTML_4_0S "<!DOCTYPE HTML PUBLIC \"-//W3C//" \
243 "DTD HTML 4.0//EN\"\n" \
244 "\"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
246 #define DOCTYPE_HTML_4_0T "<!DOCTYPE HTML PUBLIC \"-//W3C//" \
247 "DTD HTML 4.0 Transitional//EN\"\n" \
248 "\"http://www.w3.org/TR/REC-html40/loose.dtd\">\n"
250 #define DOCTYPE_HTML_4_0F "<!DOCTYPE HTML PUBLIC \"-//W3C//" \
251 "DTD HTML 4.0 Frameset//EN\"\n" \
252 "\"http://www.w3.org/TR/REC-html40/frameset.dtd\">\n"
254 #define DOCTYPE_HTML_4_01 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n"
256 #define DOCTYPE_HTML_5 "<!DOCTYPE html>\n"
258 #define DOCTYPE_XHTML_1_0S "<!DOCTYPE html PUBLIC \"-//W3C//" \
259 "DTD XHTML 1.0 Strict//EN\"\n" \
260 "\"http://www.w3.org/TR/xhtml1/DTD/" \
261 "xhtml1-strict.dtd\">\n"
263 #define DOCTYPE_XHTML_1_0T "<!DOCTYPE html PUBLIC \"-//W3C//" \
264 "DTD XHTML 1.0 Transitional//EN\"\n" \
265 "\"http://www.w3.org/TR/xhtml1/DTD/" \
266 "xhtml1-transitional.dtd\">\n"
268 #define DOCTYPE_XHTML_1_0F "<!DOCTYPE html PUBLIC \"-//W3C//" \
269 "DTD XHTML 1.0 Frameset//EN\"\n" \
270 "\"http://www.w3.org/TR/xhtml1/DTD/" \
271 "xhtml1-frameset.dtd\">"
274 #define HTTP_VERSION(major,minor) (1000*(major)+(minor))
276 #define HTTP_VERSION_MAJOR(number) ((number)/1000)
278 #define HTTP_VERSION_MINOR(number) ((number)%1000)
283 #define DEFAULT_HTTP_PORT 80
285 #define DEFAULT_HTTPS_PORT 443
292 #define ap_is_default_port(port,r) ((port) == ap_default_port(r))
297 #define ap_default_port(r) ap_run_default_port(r)
302 #define ap_http_scheme(r) ap_run_http_scheme(r)
305 #define MAX_STRING_LEN HUGE_STRING_LEN
308 #define HUGE_STRING_LEN 8192
311 #define AP_IOBUFSIZE 8192
314 #define AP_MAX_REG_MATCH 10
322 #define AP_MAX_SENDFILE 16777216
330 #define APEXIT_OK 0x0
332 #define APEXIT_INIT 0x2
334 #define APEXIT_CHILDINIT 0x3
340 #define APEXIT_CHILDSICK 0x7
346 #define APEXIT_CHILDFATAL 0xf
354 # define AP_DECLARE(type) type
357 #ifndef AP_DECLARE_NONSTD
365 # define AP_DECLARE_NONSTD(type) type
367 #ifndef AP_DECLARE_DATA
368 # define AP_DECLARE_DATA
371 #ifndef AP_MODULE_DECLARE
372 # define AP_MODULE_DECLARE(type) type
374 #ifndef AP_MODULE_DECLARE_NONSTD
375 # define AP_MODULE_DECLARE_NONSTD(type) type
377 #ifndef AP_MODULE_DECLARE_DATA
378 # define AP_MODULE_DECLARE_DATA
385 #ifndef AP_CORE_DECLARE
386 # define AP_CORE_DECLARE AP_DECLARE
394 #ifndef AP_CORE_DECLARE_NONSTD
395 # define AP_CORE_DECLARE_NONSTD AP_DECLARE_NONSTD
402 #define AP_START_USERERR (APR_OS_START_USERERR + 2000)
403 #define AP_USERERR_LEN 1000
406 #define AP_DECLINED (AP_START_USERERR + 0)
471 #define AP_NOBODY_WROTE -100
474 #define AP_NOBODY_READ -101
478 #define AP_FILTER_ERROR -102
490 #define RESPONSE_CODES 103
492 #define HTTP_CONTINUE 100
493 #define HTTP_SWITCHING_PROTOCOLS 101
494 #define HTTP_PROCESSING 102
496 #define HTTP_CREATED 201
497 #define HTTP_ACCEPTED 202
498 #define HTTP_NON_AUTHORITATIVE 203
499 #define HTTP_NO_CONTENT 204
500 #define HTTP_RESET_CONTENT 205
501 #define HTTP_PARTIAL_CONTENT 206
502 #define HTTP_MULTI_STATUS 207
503 #define HTTP_ALREADY_REPORTED 208
504 #define HTTP_IM_USED 226
505 #define HTTP_MULTIPLE_CHOICES 300
506 #define HTTP_MOVED_PERMANENTLY 301
507 #define HTTP_MOVED_TEMPORARILY 302
508 #define HTTP_SEE_OTHER 303
509 #define HTTP_NOT_MODIFIED 304
510 #define HTTP_USE_PROXY 305
511 #define HTTP_TEMPORARY_REDIRECT 307
512 #define HTTP_PERMANENT_REDIRECT 308
513 #define HTTP_BAD_REQUEST 400
514 #define HTTP_UNAUTHORIZED 401
515 #define HTTP_PAYMENT_REQUIRED 402
516 #define HTTP_FORBIDDEN 403
517 #define HTTP_NOT_FOUND 404
518 #define HTTP_METHOD_NOT_ALLOWED 405
519 #define HTTP_NOT_ACCEPTABLE 406
520 #define HTTP_PROXY_AUTHENTICATION_REQUIRED 407
521 #define HTTP_REQUEST_TIME_OUT 408
522 #define HTTP_CONFLICT 409
523 #define HTTP_GONE 410
524 #define HTTP_LENGTH_REQUIRED 411
525 #define HTTP_PRECONDITION_FAILED 412
526 #define HTTP_REQUEST_ENTITY_TOO_LARGE 413
527 #define HTTP_REQUEST_URI_TOO_LARGE 414
528 #define HTTP_UNSUPPORTED_MEDIA_TYPE 415
529 #define HTTP_RANGE_NOT_SATISFIABLE 416
530 #define HTTP_EXPECTATION_FAILED 417
531 #define HTTP_IM_A_TEAPOT 418
532 #define HTTP_MISDIRECTED_REQUEST 421
533 #define HTTP_UNPROCESSABLE_ENTITY 422
534 #define HTTP_LOCKED 423
535 #define HTTP_FAILED_DEPENDENCY 424
536 #define HTTP_TOO_EARLY 425
537 #define HTTP_UPGRADE_REQUIRED 426
538 #define HTTP_PRECONDITION_REQUIRED 428
539 #define HTTP_TOO_MANY_REQUESTS 429
540 #define HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431
541 #define HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451
542 #define HTTP_INTERNAL_SERVER_ERROR 500
543 #define HTTP_NOT_IMPLEMENTED 501
544 #define HTTP_BAD_GATEWAY 502
545 #define HTTP_SERVICE_UNAVAILABLE 503
546 #define HTTP_GATEWAY_TIME_OUT 504
547 #define HTTP_VERSION_NOT_SUPPORTED 505
548 #define HTTP_VARIANT_ALSO_VARIES 506
549 #define HTTP_INSUFFICIENT_STORAGE 507
550 #define HTTP_LOOP_DETECTED 508
551 #define HTTP_NOT_EXTENDED 510
552 #define HTTP_NETWORK_AUTHENTICATION_REQUIRED 511
555 #define ap_is_HTTP_INFO(x) (((x) >= 100)&&((x) < 200))
557 #define ap_is_HTTP_SUCCESS(x) (((x) >= 200)&&((x) < 300))
559 #define ap_is_HTTP_REDIRECT(x) (((x) >= 300)&&((x) < 400))
561 #define ap_is_HTTP_ERROR(x) (((x) >= 400)&&((x) < 600))
563 #define ap_is_HTTP_CLIENT_ERROR(x) (((x) >= 400)&&((x) < 500))
565 #define ap_is_HTTP_SERVER_ERROR(x) (((x) >= 500)&&((x) < 600))
567 #define ap_is_HTTP_VALID_RESPONSE(x) (((x) >= 100)&&((x) < 600))
570 #define ap_status_drops_connection(x) \
571 (((x) == HTTP_BAD_REQUEST) || \
572 ((x) == HTTP_REQUEST_TIME_OUT) || \
573 ((x) == HTTP_LENGTH_REQUIRED) || \
574 ((x) == HTTP_REQUEST_ENTITY_TOO_LARGE) || \
575 ((x) == HTTP_REQUEST_URI_TOO_LARGE) || \
576 ((x) == HTTP_INTERNAL_SERVER_ERROR) || \
577 ((x) == HTTP_SERVICE_UNAVAILABLE) || \
578 ((x) == HTTP_NOT_IMPLEMENTED))
581 #define AP_STATUS_IS_HEADER_ONLY(x) ((x) == HTTP_NO_CONTENT || \
582 (x) == HTTP_NOT_MODIFIED)
608 #define M_PROPPATCH 9
614 #define M_VERSION_CONTROL 15
615 #define M_CHECKOUT 16
616 #define M_UNCHECKOUT 17
621 #define M_MKWORKSPACE 22
622 #define M_MKACTIVITY 23
623 #define M_BASELINE_CONTROL 24
648 #define AP_METHOD_BIT ((ap_method_mask_t)1)
686 #define AP_REQUEST_STRONG_ETAG 1 >> 0
692 #define AP_REQUEST_GET_BNOTE(r, mask) \
693 ((mask) & ((r)->bnotes))
699 #define AP_REQUEST_SET_BNOTE(r, mask, val) \
700 (r)->bnotes = (((r)->bnotes & ~(mask)) | (val))
705 #define AP_REQUEST_IS_STRONG_ETAG(r) \
706 AP_REQUEST_GET_BNOTE((r), AP_REQUEST_STRONG_ETAG)
715 #define CGI_MAGIC_TYPE "application/x-httpd-cgi"
717 #define INCLUDES_MAGIC_TYPE "text/x-server-parsed-html"
719 #define INCLUDES_MAGIC_TYPE3 "text/x-server-parsed-html3"
721 #define DIR_MAGIC_TYPE "httpd/unix-directory"
723 #define AP_DEFAULT_HANDLER_NAME ""
724 #define AP_IS_DEFAULT_HANDLER_NAME(x) (*x == '\0')
728 #if !APR_CHARSET_EBCDIC
734 #define CRLF "\015\012"
747 #define CRLF_ASCII "\015\012"
748 #define ZERO_ASCII "\060"
757 #define REQUEST_NO_BODY 0
759 #define REQUEST_CHUNKED_ERROR 1
761 #define REQUEST_CHUNKED_DECHUNK 2
772 #define AP_REQ_ACCEPT_PATH_INFO 0
774 #define AP_REQ_REJECT_PATH_INFO 1
776 #define AP_REQ_DEFAULT_PATH_INFO 2
1172 #define PROXYREQ_NONE 0
1173 #define PROXYREQ_PROXY 1
1174 #define PROXYREQ_REVERSE 2
1175 #define PROXYREQ_RESPONSE 3
1354 #define DEFAULT_VHOST_ADDR 0xfffffffful
1528 const char *document_root);
1819 #define AP_UNESCAPE_URL_KEEP_UNRESERVED (1u << 0)
1820 #define AP_UNESCAPE_URL_FORBID_SLASHES (1u << 1)
1821 #define AP_UNESCAPE_URL_KEEP_SLASHES (1u << 2)
1856 #define AP_NORMALIZE_ALLOW_RELATIVE (1u << 0)
1857 #define AP_NORMALIZE_NOT_ABOVE_ROOT (1u << 1)
1858 #define AP_NORMALIZE_DECODE_UNRESERVED (1u << 2)
1859 #define AP_NORMALIZE_MERGE_SLASHES (1u << 3)
1860 #define AP_NORMALIZE_DROP_PARAMETERS (0)
1914 #define ap_escape_uri(ppool,path) ap_os_escape_path(ppool,path,1)
1943 #define ap_escape_html(p,s) ap_escape_html2(p,s,0)
2134 const char *encoded,
2204 const char *input,
const char *source,
2296 const char *timeout_parameter,
2298 const char *default_time_unit);
2309 #define AP_TAINT_HTACCESS 0x1
2388 extern int os_init_job_environment(
server_rec *
s,
const char *user_name,
int one_process);
2410 #define ap_assert(exp) ((exp) ? (void)0 : ap_log_assert(#exp,__FILE__,__LINE__))
2420 #define AP_DEBUG_ASSERT(exp) ap_assert(exp)
2422 #define AP_DEBUG_ASSERT(exp) ((void)0)
2434 #define SIGSTOP_DETACH 1
2436 #define SIGSTOP_MAKE_CHILD 2
2438 #define SIGSTOP_SPAWN_CHILD 4
2440 #define SIGSTOP_PIPED_LOG_SPAWN 8
2442 #define SIGSTOP_CGI_CHILD 16
2445 #ifdef DEBUG_SIGSTOP
2446 extern int raise_sigstop_flags;
2447 #define RAISE_SIGSTOP(x) do { \
2448 if (raise_sigstop_flags & SIGSTOP_##x) raise(SIGSTOP);\
2451 #define RAISE_SIGSTOP(x)
2483 # define strchr(s, c) ap_strchr(s,c)
2485 # define strrchr(s, c) ap_strrchr(s,c)
2487 # define strstr(s, c) ap_strstr(s,c)
2489 #if !defined(AP_DEBUG_NO_ALLOC_POISON) && !APR_POOL_DEBUG
2493 #define apr_palloc ap_palloc_debug
2501 #define apr_pcalloc ap_pcalloc_debug
2507 # define ap_strchr(s, c) strchr(s, c)
2509 # define ap_strchr_c(s, c) strchr(s, c)
2511 # define ap_strrchr(s, c) strrchr(s, c)
2513 # define ap_strrchr_c(s, c) strrchr(s, c)
2515 # define ap_strstr(s, c) strstr(s, c)
2517 # define ap_strstr_c(s, c) strstr(s, c)
2591 #if APR_VERSION_AT_LEAST(1,8,0)
2596 #if APR_HAS_THREAD_LOCAL && !defined(AP_NO_THREAD_LOCAL)
2597 #define AP_THREAD_LOCAL APR_THREAD_LOCAL
2599 #define ap_thread_current apr_thread_current
2600 #define ap_thread_current_create apr_thread_current_create
2601 #define ap_thread_current_after_fork apr_thread_current_after_fork
2605 #if !defined(AP_NO_THREAD_LOCAL)
2609 #if defined(__cplusplus) && __cplusplus >= 201103L
2610 #define AP_THREAD_LOCAL thread_local
2611 #elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112 && \
2612 (!defined(__GNUC__) || \
2613 __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9))
2614 #define AP_THREAD_LOCAL _Thread_local
2615 #elif defined(__GNUC__)
2616 #define AP_THREAD_LOCAL __thread
2617 #elif defined(WIN32) && defined(_MSC_VER)
2618 #define AP_THREAD_LOCAL __declspec(thread)
2632 #ifdef AP_THREAD_LOCAL
2633 #define AP_HAS_THREAD_LOCAL 1
2635 #define AP_HAS_THREAD_LOCAL 0
2676 const char *username,
2690 const char *
const *argv);
2693 #define AP_NORESTART APR_OS_START_USEERR + 1
2748 #define AP_DIR_FLAG_NONE 0
2754 #define AP_DIR_FLAG_OPTIONAL 1
2760 #define AP_DIR_FLAG_RECURSIVE 2
Symbol export macros and hook functions.
#define AP_FN_ATTR_NONNULL_ALL
Definition: ap_config.h:260
#define AP_FN_ATTR_ALLOC_SIZE2(x, y)
Definition: ap_config.h:249
#define AP_FN_ATTR_ALLOC_SIZE(x)
Definition: ap_config.h:248
APR Platform Definitions.
APR-UTIL Buckets/Bucket Brigades.
APR Miscellaneous library routines.
APR Thread and Process Library.
APR Versioning Interface.
struct ap_conf_vector_t ap_conf_vector_t
Definition: http_config.h:512
const char * ap_get_server_description(void)
void ap_get_server_revision(ap_version_t *version)
void ap_add_version_component(apr_pool_t *pconf, const char *component)
const char * ap_get_server_banner(void)
const char * ap_get_server_built(void)
unsigned int clogging_input_filters
Definition: httpd.h:1249
char * user
Definition: httpd.h:1016
char * useragent_host
Definition: httpd.h:1124
apr_array_header_t * requests
Definition: httpd.h:1297
apr_array_header_t * content_languages
Definition: httpd.h:1010
int status
Definition: httpd.h:902
int eos_sent
Definition: httpd.h:1050
const struct ap_logconf * log
Definition: httpd.h:1267
int async_filter
Definition: httpd.h:1303
char * remote_logname
Definition: httpd.h:1219
int argc
Definition: httpd.h:850
apr_array_header_t * method_list
Definition: httpd.h:662
apr_pool_t * pool
Definition: httpd.h:842
int patch
Definition: httpd.h:417
apr_sockaddr_t * client_addr
Definition: httpd.h:1206
struct ap_errorlog_provider * errorlog_provider
Definition: httpd.h:1396
apr_off_t bytes_sent
Definition: httpd.h:942
conn_state_t * cs
Definition: httpd.h:1244
apr_pool_t * pool
Definition: httpd.h:1194
server_rec * base_server
Definition: httpd.h:1196
ap_conn_keepalive_e keepalive
Definition: httpd.h:1260
apr_off_t bytes_served
Definition: httpd.h:1480
int minor
Definition: httpd.h:416
char * uri
Definition: httpd.h:1027
const char * content_type
Definition: httpd.h:1003
apr_sockaddr_t * local_addr
Definition: httpd.h:1202
const char * path
Definition: httpd.h:1449
apr_table_t * trailers_in
Definition: httpd.h:1117
float loadavg5
Definition: httpd.h:1494
void * errorlog_provider_handle
Definition: httpd.h:1398
struct ap_filter_t * input_filters
Definition: httpd.h:1236
apr_table_t * body_table
Definition: httpd.h:968
apr_array_header_t * slaves
Definition: httpd.h:1285
void * suspended_baton
Definition: httpd.h:1294
unsigned long access_count
Definition: httpd.h:1482
struct ap_filter_t * output_filters
Definition: httpd.h:1081
int pathlen
Definition: httpd.h:1451
int double_reverse
Definition: httpd.h:1129
char * useragent_ip
Definition: httpd.h:1114
apr_interval_time_t timeout
Definition: httpd.h:1435
request_rec * prev
Definition: httpd.h:867
int assbackwards
Definition: httpd.h:879
conn_state_e state
Definition: httpd.h:1341
process_rec * process
Definition: httpd.h:1383
int read_body
Definition: httpd.h:958
int header_only
Definition: httpd.h:886
apr_time_t mtime
Definition: httpd.h:944
int limit_req_line
Definition: httpd.h:1454
struct ap_filter_t * output_filters
Definition: httpd.h:1238
struct ap_filter_conn_ctx * filter_conn_ctx
Definition: httpd.h:1300
const char * dir
Definition: httpd.h:799
int outgoing
Definition: httpd.h:1305
apr_port_t host_port
Definition: httpd.h:1368
struct ap_filter_t * proto_input_filters
Definition: httpd.h:1090
const char * handler
Definition: httpd.h:1005
ap_method_mask_t method_mask
Definition: httpd.h:660
apr_table_t * notes
Definition: httpd.h:996
int body_indeterminate
Definition: httpd.h:1152
unsigned defn_line_number
Definition: httpd.h:1411
unsigned expecting_100
Definition: httpd.h:962
const char * hostname
Definition: httpd.h:894
const struct htaccess_result * htaccess
Definition: httpd.h:1078
struct apr_bucket_alloc_t * bucket_alloc
Definition: httpd.h:1242
int used_path_info
Definition: httpd.h:1047
server_addr_rec * next
Definition: httpd.h:1362
char * the_request
Definition: httpd.h:877
apr_table_t * override_list
Definition: httpd.h:805
int method_number
Definition: httpd.h:909
apr_interval_time_t keep_alive_timeout
Definition: httpd.h:1437
apr_array_header_t * names
Definition: httpd.h:1444
int major
Definition: httpd.h:415
conn_rec * c
Definition: httpd.h:1309
apr_pool_t * pool
Definition: httpd.h:858
apr_file_t * error_log
Definition: httpd.h:1392
apr_sockaddr_t * useragent_addr
Definition: httpd.h:1113
char * filename
Definition: httpd.h:1029
const char * short_name
Definition: httpd.h:846
apr_time_t request_time
Definition: httpd.h:897
int keep_alive
Definition: httpd.h:1441
apr_off_t remaining
Definition: httpd.h:970
signed int double_reverse
Definition: httpd.h:1253
apr_uri_t parsed_uri
Definition: httpd.h:1105
const char * server_scheme
Definition: httpd.h:1421
unsigned int flushed
Definition: httpd.h:1139
char * client_ip
Definition: httpd.h:1211
apr_table_t * notes
Definition: httpd.h:1234
const char * defn_name
Definition: httpd.h:1409
char * unparsed_uri
Definition: httpd.h:1025
int limit_req_fieldsize
Definition: httpd.h:1456
int proxyreq
Definition: httpd.h:884
conn_rec * connection
Definition: httpd.h:860
int limit_req_fields
Definition: httpd.h:1458
int keep_alive_max
Definition: httpd.h:1439
int flags
Definition: httpd.h:2780
const char * add_string
Definition: httpd.h:418
server_rec * next
Definition: httpd.h:1385
server_addr_rec * addrs
Definition: httpd.h:1433
int idle
Definition: httpd.h:1476
signed char * module_levels
Definition: httpd.h:1373
const char * log_id
Definition: httpd.h:1272
char * local_host
Definition: httpd.h:1225
apr_bucket_brigade * kept_body
Definition: httpd.h:964
ap_method_list_t * allowed_methods
Definition: httpd.h:937
apr_array_header_t * allowed_xmethods
Definition: httpd.h:935
void * ctx
Definition: httpd.h:2778
int no_cache
Definition: httpd.h:1093
const char * log_id
Definition: httpd.h:1070
unsigned int final_resp_passed
Definition: httpd.h:1157
apr_table_t * err_headers_out
Definition: httpd.h:992
struct ap_filter_t * proto_output_filters
Definition: httpd.h:1087
int taint
Definition: httpd.h:1134
apr_finfo_t finfo
Definition: httpd.h:1107
int no_local_copy
Definition: httpd.h:1095
char * canonical_filename
Definition: httpd.h:1033
char * server_hostname
Definition: httpd.h:1428
const struct ap_logconf * log
Definition: httpd.h:1065
void * context
Definition: httpd.h:1461
ap_request_bnotes_t bnotes
Definition: httpd.h:1144
float loadavg
Definition: httpd.h:1492
int proto_num
Definition: httpd.h:888
char * virthost
Definition: httpd.h:1364
int chunked
Definition: httpd.h:953
struct ap_filter_t * input_filters
Definition: httpd.h:1083
struct ap_conf_vector_t * request_config
Definition: httpd.h:1060
float loadavg15
Definition: httpd.h:1496
const char * prefix
Definition: httpd.h:2774
int busy
Definition: httpd.h:1478
apr_array_header_t * wild_names
Definition: httpd.h:1446
apr_pool_t * pconf
Definition: httpd.h:844
int keepalives
Definition: httpd.h:1263
int level
Definition: httpd.h:1376
apr_table_t * headers_in
Definition: httpd.h:987
const char *const * argv
Definition: httpd.h:848
char * remote_host
Definition: httpd.h:1215
struct ap_conf_vector_t * lookup_defaults
Definition: httpd.h:1406
conn_sense_e sense
Definition: httpd.h:1343
struct ap_conf_vector_t * htaccess
Definition: httpd.h:807
void * ctx
Definition: httpd.h:1291
const char * range
Definition: httpd.h:949
conn_rec * master
Definition: httpd.h:1288
char * error_fname
Definition: httpd.h:1390
int read_chunked
Definition: httpd.h:960
char is_virtual
Definition: httpd.h:1413
apr_pool_t * p
Definition: httpd.h:2770
apr_off_t read_length
Definition: httpd.h:972
struct ap_conf_vector_t * module_config
Definition: httpd.h:1404
request_rec * main
Definition: httpd.h:871
apr_sockaddr_t * host_addr
Definition: httpd.h:1366
unsigned int keep_alive_timeout_set
Definition: httpd.h:1466
apr_pool_t * ptemp
Definition: httpd.h:2772
unsigned int depth
Definition: httpd.h:2782
struct ap_logconf log
Definition: httpd.h:1394
apr_table_t * subprocess_env
Definition: httpd.h:994
struct ap_conf_vector_t * conn_config
Definition: httpd.h:1231
const struct htaccess_result * next
Definition: httpd.h:809
const char * protocol
Definition: httpd.h:890
void * vhost_lookup_data
Definition: httpd.h:1198
apr_off_t sent_bodyct
Definition: httpd.h:940
server_rec * server
Definition: httpd.h:862
int override_opts
Definition: httpd.h:803
char * local_ip
Definition: httpd.h:1222
struct ap_conf_vector_t * per_dir_config
Definition: httpd.h:1058
apr_off_t clength
Definition: httpd.h:951
char * vlist_validator
Definition: httpd.h:1013
ap_method_mask_t allowed
Definition: httpd.h:933
const char * status_line
Definition: httpd.h:900
apr_port_t port
Definition: httpd.h:1419
apr_thread_mutex_t * invoke_mtx
Definition: httpd.h:1101
const char * method
Definition: httpd.h:911
char * server_admin
Definition: httpd.h:1426
unsigned aborted
Definition: httpd.h:1256
void * sbh
Definition: httpd.h:1240
char * path_info
Definition: httpd.h:1035
request_rec * next
Definition: httpd.h:865
long id
Definition: httpd.h:1228
char * args
Definition: httpd.h:1037
apr_table_t * trailers_out
Definition: httpd.h:1119
const char * content_encoding
Definition: httpd.h:1008
char * ap_auth_type
Definition: httpd.h:1018
apr_thread_t * current_thread
Definition: httpd.h:1281
apr_table_t * headers_out
Definition: httpd.h:989
struct apr_bucket_alloc_t apr_bucket_alloc_t
Definition: apr_buckets.h:128
dav_resource int dav_locktoken dav_response int flags
Definition: mod_dav.h:1458
dav_buffer apr_size_t size
Definition: mod_dav.h:461
request_rec * r
Definition: mod_dav.h:518
dav_buffer const char * str
Definition: mod_dav.h:465
const char * prefix
Definition: mod_dav.h:631
const char * s
Definition: mod_dav.h:1327
dav_error * src
Definition: mod_dav.h:186
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
const char * name
Definition: mod_dav.h:805
proxy_worker proxy_server_conf char * url
Definition: mod_proxy.h:647
const char AP_FN_ATTR_WARN_UNUSED_RESULT
Definition: ssl_private.h:1161
AP_FN_ATTR_NONNULL((1, 2, 5)) AP_FN_ATTR_WARN_UNUSED_RESULT
apr_uint64_t ap_method_mask_t
Definition: httpd.h:642
char * ap_escape_quotes(apr_pool_t *p, const char *instring)
#define ap_strchr(s, c)
Definition: httpd.h:2505
apr_status_t ap_thread_create(apr_thread_t **thread, apr_threadattr_t *attr, apr_thread_start_t func, void *data, apr_pool_t *pool)
char * ap_getword_nc(apr_pool_t *p, char **line, char stop)
int ap_array_str_index(const apr_array_header_t *array, const char *s, int start)
#define ap_strstr(s, c)
Definition: httpd.h:2513
int ap_request_tainted(request_rec *r, int flags)
void ap_random_insecure_bytes(void *buf, apr_size_t size)
void ap_no2slash(char *name) AP_FN_ATTR_NONNULL_ALL
ap_conn_keepalive_e
Enumeration of connection keepalive options.
Definition: httpd.h:1180
void ap_set_document_root(request_rec *r, const char *document_root)
const char const char int ap_is_chunked(apr_pool_t *p, const char *line)
apr_size_t ap_escape_errorlog_item(char *dest, const char *source, apr_size_t buflen) AP_FN_ATTR_NONNULL((1))
void ap_no2slash_ex(char *name, int is_fs_path) AP_FN_ATTR_NONNULL_ALL
apr_status_t ap_pbase64decode_strict(apr_pool_t *p, const char *encoded, char **decoded, apr_size_t *len)
int ap_is_directory(apr_pool_t *p, const char *name)
#define ap_strrchr(s, c)
Definition: httpd.h:2509
char * ap_escape_path_segment_buffer(char *c, const char *s) AP_FN_ATTR_NONNULL_ALL
char * ap_make_dirstr_parent(apr_pool_t *p, const char *s) AP_FN_ATTR_NONNULL_ALL
int ap_is_url(const char *u)
char * ap_get_local_host(apr_pool_t *p)
char char * ap_escape_shell_cmd(apr_pool_t *p, const char *s) AP_FN_ATTR_NONNULL_ALL
char * ap_strcasestr(const char *s1, const char *s2) AP_FN_ATTR_NONNULL_ALL
char * ap_getword_white(apr_pool_t *p, const char **line)
int ap_cstr_casecmp(const char *s1, const char *s2)
int ap_unescape_url_ex(char *url, unsigned int flags)
char * ap_getword_nulls_nc(apr_pool_t *p, char **line, char stop)
const char * ap_stripprefix(const char *bigstring, const char *prefix) AP_FN_ATTR_NONNULL_ALL
char * ap_getword_conf2_nc(apr_pool_t *p, char **line)
#define ap_strrchr_c(s, c)
Definition: httpd.h:2511
#define ap_strstr_c(s, c)
Definition: httpd.h:2515
char * ap_getword_nulls(apr_pool_t *p, const char **line, char stop)
char * ap_field_noparam(apr_pool_t *p, const char *intype)
char * ap_escape_path_segment(apr_pool_t *p, const char *s) AP_FN_ATTR_NONNULL_ALL
char * ap_construct_server(apr_pool_t *p, const char *hostname, apr_port_t port, const request_rec *r) AP_FN_ATTR_NONNULL((1
int ap_find_etag_weak(apr_pool_t *p, const char *line, const char *tok)
apr_status_t ap_thread_main_create(apr_thread_t **thread, apr_pool_t *pool)
const char * ap_context_prefix(request_rec *r)
int ap_strcmp_match(const char *str, const char *expected) AP_FN_ATTR_NONNULL_ALL
void ap_set_context_info(request_rec *r, const char *prefix, const char *document_root)
char * ap_pbase64decode(apr_pool_t *p, const char *bufcoded)
int ap_unescape_urlencoded(char *query)
char * ap_getword(apr_pool_t *p, const char **line, char stop)
void ap_log_assert(const char *szExp, const char *szFile, int nLine) __attribute__((noreturn))
#define ap_strchr_c(s, c)
Definition: httpd.h:2507
conn_state_e
Definition: httpd.h:1317
char * ap_escape_logitem(apr_pool_t *p, const char *str) AP_FN_ATTR_NONNULL((1))
char * ap_make_full_path(apr_pool_t *a, const char *dir, const char *f) AP_FN_ATTR_NONNULL_ALL
const char * ap_size_list_item(const char **field, int *len)
char * ap_getword_conf2(apr_pool_t *p, const char **line)
void * ap_calloc(size_t nelem, size_t size) __attribute__((malloc)) AP_FN_ATTR_ALLOC_SIZE2(1
int ap_normalize_path(char *path, unsigned int flags) AP_FN_ATTR_NONNULL((1))
int ap_find_etag_strong(apr_pool_t *p, const char *line, const char *tok)
char * ap_escape_urlencoded_buffer(char *c, const char *s) AP_FN_ATTR_NONNULL_ALL
int ap_unescape_all(char *url)
const char * ap_resolve_env(apr_pool_t *p, const char *word)
char * ap_getword_conf_nc(apr_pool_t *p, char **line)
apr_status_t ap_str2_alnum(const char *src, char *dest)
void ap_str_toupper(char *s)
char * ap_ht_time(apr_pool_t *p, apr_time_t t, const char *fmt, int gmt)
void ap_getparents(char *name) AP_FN_ATTR_NONNULL_ALL
int ap_rind(const char *str, char c)
void ap_abort_on_oom(void) __attribute__((noreturn))
int ap_is_rdirectory(apr_pool_t *p, const char *name)
int ap_count_dirs(const char *path) AP_FN_ATTR_NONNULL_ALL
int ap_request_has_body(request_rec *r)
void ap_content_type_tolower(char *s)
int ap_os_is_path_absolute(apr_pool_t *p, const char *dir) AP_FN_ATTR_NONNULL_ALL
char * ap_escape_urlencoded(apr_pool_t *p, const char *s) AP_FN_ATTR_NONNULL_ALL
int ap_find_token(apr_pool_t *p, const char *line, const char *tok)
apr_thread_t * ap_thread_current(void)
int ap_parse_form_data(request_rec *r, struct ap_filter_t *f, apr_array_header_t **ptr, apr_size_t num, apr_size_t size)
void * ap_malloc(size_t size) __attribute__((malloc)) AP_FN_ATTR_ALLOC_SIZE(1)
ap_regex_t * ap_pregcomp(apr_pool_t *p, const char *pattern, int cflags)
apr_status_t ap_pregsub_ex(apr_pool_t *p, char **result, const char *input, const char *source, apr_size_t nmatch, ap_regmatch_t pmatch[], apr_size_t maxlen)
char * ap_pregsub(apr_pool_t *p, const char *input, const char *source, apr_size_t nmatch, ap_regmatch_t pmatch[])
int ap_cstr_casecmpn(const char *s1, const char *s2, apr_size_t n)
const char * ap_scan_vchar_obstext(const char *ptr)
char * ap_append_pid(apr_pool_t *p, const char *string, const char *delim)
conn_sense_e
Definition: httpd.h:1330
char * ap_get_token(apr_pool_t *p, const char **accept_line, int accept_white)
char * ap_get_list_item(apr_pool_t *p, const char **field)
void void * ap_realloc(void *ptr, size_t size) AP_FN_ATTR_WARN_UNUSED_RESULT AP_FN_ATTR_ALLOC_SIZE(2)
void ap_get_sload(ap_sload_t *ld) AP_FN_ATTR_NONNULL_ALL
const char * ap_scan_http_field_content(const char *ptr)
char * ap_os_escape_path(apr_pool_t *p, const char *path, int partial) AP_FN_ATTR_NONNULL_ALL
const char * ap_context_document_root(request_rec *r)
void ap_str_tolower(char *s)
int ap_parse_strict_length(apr_off_t *len, const char *str)
void * ap_pcalloc_debug(apr_pool_t *p, apr_size_t size)
apr_status_t ap_thread_current_create(apr_thread_t **current, apr_threadattr_t *attr, apr_pool_t *pool)
char * ap_pbase64encode(apr_pool_t *p, char *string)
int ap_array_str_contains(const apr_array_header_t *array, const char *s)
const char * ap_scan_http_token(const char *ptr)
apr_status_t ap_password_validate(request_rec *r, const char *username, const char *passwd, const char *hash)
const char * ap_psignature(const char *prefix, request_rec *r)
int ap_unescape_url(char *url)
int ap_ind(const char *str, char c)
apr_status_t ap_pstr2_alnum(apr_pool_t *p, const char *src, const char **dest)
void * ap_palloc_debug(apr_pool_t *p, apr_size_t size)
apr_uint32_t ap_random_pick(apr_uint32_t min, apr_uint32_t max)
int ap_unescape_url_keep2f(char *url, int decode_slashes)
char * ap_escape_html2(apr_pool_t *p, const char *s, int toasc) AP_FN_ATTR_NONNULL_ALL
void ap_pregfree(apr_pool_t *p, ap_regex_t *reg)
const char * ap_parse_token_list_strict(apr_pool_t *p, const char *tok, apr_array_header_t **tokens, int skip_invalid)
const char const char * ap_dir_fnmatch(ap_dir_match_t *w, const char *path, const char *fname) __attribute__((nonnull(1
int ap_strcasecmp_match(const char *str, const char *expected) AP_FN_ATTR_NONNULL_ALL
void ap_get_loadavg(ap_loadavg_t *ld) AP_FN_ATTR_NONNULL_ALL
const char * ap_dir_nofnmatch(ap_dir_match_t *w, const char *fname) __attribute__((nonnull(1
int ap_is_matchexp(const char *str) AP_FN_ATTR_NONNULL_ALL
void ap_thread_current_after_fork(void)
char * ap_make_dirstr_prefix(char *d, const char *s, int n) AP_FN_ATTR_NONNULL_ALL
int ap_find_list_item(apr_pool_t *p, const char *line, const char *tok)
apr_status_t ap_timeout_parameter_parse(const char *timeout_parameter, apr_interval_time_t *timeout, const char *default_time_unit)
char * ap_getword_conf(apr_pool_t *p, const char **line)
void ap_bin2hex(const void *src, apr_size_t srclen, char *dest) AP_FN_ATTR_NONNULL_ALL
int ap_find_last_token(apr_pool_t *p, const char *line, const char *tok)
char * ap_get_exec_line(apr_pool_t *p, const char *cmd, const char *const *argv)
char * ap_getword_white_nc(apr_pool_t *p, char **line)
@ AP_CONN_KEEPALIVE
Definition: httpd.h:1183
@ AP_CONN_UNKNOWN
Definition: httpd.h:1181
@ AP_CONN_CLOSE
Definition: httpd.h:1182
@ CONN_STATE_NUM
Definition: httpd.h:1327
@ CONN_STATE_LINGER
Definition: httpd.h:1323
@ CONN_STATE_LINGER_NORMAL
Definition: httpd.h:1324
@ CONN_STATE_READ_REQUEST_LINE
Definition: httpd.h:1319
@ CONN_STATE_LINGER_SHORT
Definition: httpd.h:1325
@ CONN_STATE_CHECK_REQUEST_LINE_READABLE
Definition: httpd.h:1318
@ CONN_STATE_WRITE_COMPLETION
Definition: httpd.h:1321
@ CONN_STATE_SUSPENDED
Definition: httpd.h:1322
@ CONN_STATE_HANDLER
Definition: httpd.h:1320
@ CONN_SENSE_WANT_WRITE
Definition: httpd.h:1333
@ CONN_SENSE_DEFAULT
Definition: httpd.h:1331
@ CONN_SENSE_WANT_READ
Definition: httpd.h:1332
int apr_status_t
Definition: apr_errno.h:44
apr_uint16_t apr_port_t
Definition: apr_network_io.h:230
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
void *(APR_THREAD_FUNC * apr_thread_start_t)(apr_thread_t *, void *)
Definition: apr_thread_proc.h:198
apr_int64_t apr_interval_time_t
Definition: apr_time.h:55
apr_int64_t apr_time_t
Definition: apr_time.h:45
apr_uint64_t ap_request_bnotes_t
Definition: httpd.h:677
#define AP_DECLARE(x)
Definition: macros.h:1
#define malloc(x)
Definition: apr_private.h:170
Definition: http_core.h:932
The representation of a filter chain.
Definition: util_filter.h:278
A structure to hold various server loadavg.
Definition: httpd.h:1490
Structure for handling HTTP methods.
Definition: httpd.h:658
Definition: ap_regex.h:111
Definition: ap_regex.h:118
A structure to hold server load params.
Definition: httpd.h:1474
The numeric version information is broken out into fields within this structure.
Definition: httpd.h:414
Definition: apr_buckets.h:263
Definition: apr_arch_file_io.h:107
Definition: apr_file_info.h:174
Definition: apr_network_io.h:239
Definition: apr_arch_thread_mutex.h:28
Definition: apr_arch_threadproc.h:42
Definition: apr_arch_threadproc.h:51
Structure to store things which are per connection.
Definition: httpd.h:1192
A structure to contain connection state information.
Definition: httpd.h:1339
This represents the result of calling htaccess; these are cached for each request.
Definition: httpd.h:797
A structure that represents one process.
Definition: httpd.h:840
A structure that represents the current request.
Definition: httpd.h:856
A structure to be used for Per-vhost config.
Definition: httpd.h:1360
A structure to store information for each virtual server.
Definition: httpd.h:1381