Apache2
http_core.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
26 #ifndef APACHE_HTTP_CORE_H
27 #define APACHE_HTTP_CORE_H
28 
29 #include "apr.h"
30 #include "apr_hash.h"
31 #include "apr_optional.h"
32 #include "util_filter.h"
33 #include "ap_expr.h"
34 #include "apr_poll.h"
35 #include "apr_tables.h"
36 
37 #include "http_config.h"
38 
39 #if APR_HAVE_STRUCT_RLIMIT
40 #include <sys/time.h>
41 #include <sys/resource.h>
42 #endif
43 
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 /* ****************************************************************
50  *
51  * The most basic server code is encapsulated in a single module
52  * known as the core, which is just *barely* functional enough to
53  * serve documents, though not terribly well.
54  *
55  * Largely for NCSA back-compatibility reasons, the core needs to
56  * make pieces of its config structures available to other modules.
57  * The accessors are declared here, along with the interpretation
58  * of one of them (allow_options).
59  */
60 
70 #define OPT_NONE 0
72 #define OPT_INDEXES 1
74 #define OPT_INCLUDES 2
76 #define OPT_SYM_LINKS 4
78 #define OPT_EXECCGI 8
80 #define OPT_UNSET 16
82 #define OPT_INC_WITH_EXEC 32
84 #define OPT_SYM_OWNER 64
86 #define OPT_MULTI 128
88 #define OPT_ALL (OPT_INDEXES|OPT_INCLUDES|OPT_INC_WITH_EXEC|OPT_SYM_LINKS|OPT_EXECCGI)
100 #define REMOTE_HOST (0)
101 
106 #define REMOTE_NAME (1)
107 
111 #define REMOTE_NOLOOKUP (2)
112 
118 #define REMOTE_DOUBLE_REV (3)
119 
123 #define SATISFY_ALL 0
125 #define SATISFY_ANY 1
127 #define SATISFY_NOSPEC 2
128 
131 #define AP_MIN_BYTES_TO_WRITE 8000
132 
134 # define AP_DEFAULT_MAX_INTERNAL_REDIRECTS 10
135 
137 # define AP_DEFAULT_MAX_SUBREQ_DEPTH 10
138 
145 
152 
161 
185 AP_DECLARE(const char *) ap_get_useragent_host(request_rec *req, int type,
186  int *str_is_ip);
187 
212 AP_DECLARE(const char *) ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip);
213 
221 
222 /* Used for constructing self-referencing URLs, and things like SERVER_PORT,
223  * and SERVER_NAME.
224  */
233 
240 
249 
256 
263 
270 
277 
285 AP_DECLARE(void) ap_custom_response(request_rec *r, int status, const char *string);
286 
293 
300 /* FIXME! See STATUS about how */
302 
303 /* Authentication stuff. This is one of the places where compatibility
304  * with the old config files *really* hurts; they don't discriminate at
305  * all between different authentication schemes, meaning that we need
306  * to maintain common state for all of them in the core, and make it
307  * available to the other modules through interfaces.
308  */
309 
311 typedef struct require_line require_line;
312 
316 struct require_line {
320  char *requirement;
321 };
322 
329 
336 
348 
355 
364 
373 
380 
381 #ifndef AP_DEBUG
382 #define AP_CORE_MODULE_INDEX 0
383 #define ap_get_core_module_config(v) \
384  (((void **)(v))[AP_CORE_MODULE_INDEX])
385 #define ap_set_core_module_config(v, val) \
386  ((((void **)(v))[AP_CORE_MODULE_INDEX]) = (val))
387 #else
388 #define AP_CORE_MODULE_INDEX (AP_DEBUG_ASSERT(core_module.module_index == 0), 0)
389 #endif
390 
394 typedef struct {
398 
404  void **notes;
405 
409  char **response_code_strings; /* from ap_custom_response(), not from
410  * ErrorDocument
411  */
412 
416  const char *document_root;
417 
418  /*
419  * more fine-grained context information which is set by modules like
420  * mod_alias and mod_userdir
421  */
429  const char *context_prefix;
430 
440 
445 
446 /* Standard entries that are guaranteed to be accessible via
447  * ap_get_request_note() for each request (additional entries
448  * can be added with ap_register_request_note())
449  */
450 #define AP_NOTE_DIRECTORY_WALK 0
451 #define AP_NOTE_LOCATION_WALK 1
452 #define AP_NOTE_FILE_WALK 2
453 #define AP_NOTE_IF_WALK 3
454 #define AP_NUM_STD_NOTES 4
455 
464 
480 
481 
482 typedef unsigned char allow_options_t;
483 typedef unsigned int overrides_t;
484 
485 /*
486  * Bits of info that go into making an ETag for a file
487  * document. Why a long? Because char historically
488  * proved too short for Options, and int can be different
489  * sizes on different platforms.
490  */
491 typedef unsigned long etag_components_t;
492 
493 #define ETAG_UNSET 0
494 #define ETAG_NONE (1 << 0)
495 #define ETAG_MTIME (1 << 1)
496 #define ETAG_INODE (1 << 2)
497 #define ETAG_SIZE (1 << 3)
498 #define ETAG_DIGEST (1 << 4)
499 #define ETAG_ALL (ETAG_MTIME | ETAG_INODE | ETAG_SIZE)
500 /* This is the default value used */
501 #define ETAG_BACKWARD (ETAG_MTIME | ETAG_SIZE)
502 
503 /* Generic ON/OFF/UNSET for unsigned int foo :2 */
504 #define AP_CORE_CONFIG_OFF (0)
505 #define AP_CORE_CONFIG_ON (1)
506 #define AP_CORE_CONFIG_UNSET (2)
507 
508 /* Generic merge of flag */
509 #define AP_CORE_MERGE_FLAG(field, to, base, over) to->field = \
510  over->field != AP_CORE_CONFIG_UNSET \
511  ? over->field \
512  : base->field
513 
517 typedef enum {
523 
527 typedef struct {
529  char *d;
531  unsigned d_components;
532 
543  overrides_t override;
545 
546  /* Used to be the custom response config. No longer used. */
547  char **response_code_strings; /* from ErrorDocument, not from
548  * ap_custom_response() */
549 
550  /* Hostname resolution etc */
551 #define HOSTNAME_LOOKUP_OFF 0
552 #define HOSTNAME_LOOKUP_ON 1
553 #define HOSTNAME_LOOKUP_DOUBLE 2
554 #define HOSTNAME_LOOKUP_UNSET 3
555  unsigned int hostname_lookups : 4;
556 
557 #define USE_CANONICAL_NAME_OFF (0)
558 #define USE_CANONICAL_NAME_ON (1)
559 #define USE_CANONICAL_NAME_DNS (2)
560 #define USE_CANONICAL_NAME_UNSET (3)
561  unsigned use_canonical_name : 2;
562 
563  /* since is_fnmatch(conf->d) was being called so frequently in
564  * directory_walk() and its relatives, this field was created and
565  * is set to the result of that call.
566  */
567  unsigned d_is_fnmatch : 1;
568 
569  /* should we force a charset on any outgoing parameterless content-type?
570  * if so, which charset?
571  */
572 #define ADD_DEFAULT_CHARSET_OFF (0)
573 #define ADD_DEFAULT_CHARSET_ON (1)
574 #define ADD_DEFAULT_CHARSET_UNSET (2)
575  unsigned add_default_charset : 2;
577 
578  /* System Resource Control */
579 #ifdef RLIMIT_CPU
580  struct rlimit *limit_cpu;
581 #endif
582 #if defined (RLIMIT_DATA) || defined (RLIMIT_VMEM) || defined(RLIMIT_AS)
583  struct rlimit *limit_mem;
584 #endif
585 #ifdef RLIMIT_NPROC
586  struct rlimit *limit_nproc;
587 #endif
588  apr_off_t limit_req_body; /* limit on bytes in request msg body */
589  long limit_xml_body; /* limit on bytes in XML request msg body */
590 
591  /* logging options */
592 
594 
595  /* Access control */
599 
600  const char *mime_type; /* forced with ForceType */
601  const char *handler; /* forced by something other than SetHandler */
602  const char *output_filters; /* forced with SetOutputFilters */
603  const char *input_filters; /* forced with SetInputFilters */
604  int accept_path_info; /* forced with AcceptPathInfo */
605 
606  /*
607  * What attributes/data should be included in ETag generation?
608  */
612 
613  /*
614  * Run-time performance tuning
615  */
616 #define ENABLE_MMAP_OFF (0)
617 #define ENABLE_MMAP_ON (1)
618 #define ENABLE_MMAP_UNSET (2)
619  unsigned int enable_mmap : 2; /* whether files in this dir can be mmap'ed */
620 
621 #define ENABLE_SENDFILE_OFF (0)
622 #define ENABLE_SENDFILE_ON (1)
623 #define ENABLE_SENDFILE_UNSET (2)
624  unsigned int enable_sendfile : 2; /* files in this dir can be sendfile'ed */
625 
626 #define USE_CANONICAL_PHYS_PORT_OFF (0)
627 #define USE_CANONICAL_PHYS_PORT_ON (1)
628 #define USE_CANONICAL_PHYS_PORT_UNSET (2)
629  unsigned int use_canonical_phys_port : 2;
630 
631  unsigned int allow_encoded_slashes : 1; /* URLs may contain %2f w/o being
632  * pitched indiscriminately */
633  unsigned int decode_encoded_slashes : 1; /* whether to decode encoded slashes in URLs */
634 
635 #define AP_CONDITION_IF 1
636 #define AP_CONDITION_ELSE 2
637 #define AP_CONDITION_ELSEIF (AP_CONDITION_ELSE|AP_CONDITION_IF)
638  unsigned int condition_ifelse : 2; /* is this an <If>, <ElseIf>, or <Else> */
639 
640  ap_expr_info_t *condition; /* Conditionally merge <If> sections */
641 
643  struct ap_logconf *log;
644 
647 
648 #define AP_MAXRANGES_UNSET -1
649 #define AP_MAXRANGES_DEFAULT -2
650 #define AP_MAXRANGES_UNLIMITED -3
651 #define AP_MAXRANGES_NORANGES 0
658 
659  unsigned int allow_encoded_slashes_set : 1;
660  unsigned int decode_encoded_slashes_set : 1;
661 
664 
670 
671 #define AP_CGI_PASS_AUTH_OFF (0)
672 #define AP_CGI_PASS_AUTH_ON (1)
673 #define AP_CGI_PASS_AUTH_UNSET (2)
679  unsigned int cgi_pass_auth : 2;
680  unsigned int qualify_redirect_url :2;
681  ap_expr_info_t *expr_handler; /* forced with SetHandler */
682 
685 
688 
689 /* macro to implement off by default behaviour */
690 #define AP_SENDFILE_ENABLED(x) \
691  ((x) == ENABLE_SENDFILE_ON ? APR_SENDFILE_ENABLED : 0)
692 
693 /* Per-server core configuration */
694 
695 typedef struct {
696 
697  char *gprof_dir;
698 
699  /* Name translations --- we want the core to be able to do *something*
700  * so it's at least a minimally functional web server on its own (and
701  * can be tested that way). But let's keep it to the bare minimum:
702  */
703  const char *ap_document_root;
704 
705  /* Access control */
706 
707  char *access_name;
710 
711  /* recursion backstopper */
712  int redirect_limit; /* maximum number of internal redirects */
713  int subreq_limit; /* maximum nesting level of subrequests */
714 
715  const char *protocol;
717 
718  /* array of ap_errorlog_format_item for error log format string */
720  /*
721  * two arrays of arrays of ap_errorlog_format_item for additional information
722  * logged to the error log once per connection/request
723  */
726 
727  /* TRACE control */
728 #define AP_TRACE_UNSET -1
729 #define AP_TRACE_DISABLE 0
730 #define AP_TRACE_ENABLE 1
731 #define AP_TRACE_EXTENDED 2
733 #define AP_MERGE_TRAILERS_UNSET 0
734 #define AP_MERGE_TRAILERS_ENABLE 1
735 #define AP_MERGE_TRAILERS_DISABLE 2
737 
739 
740 #define AP_HTTP09_UNSET 0
741 #define AP_HTTP09_ENABLE 1
742 #define AP_HTTP09_DISABLE 2
744 
745 #define AP_HTTP_CONFORMANCE_UNSET 0
746 #define AP_HTTP_CONFORMANCE_UNSAFE 1
747 #define AP_HTTP_CONFORMANCE_STRICT 2
749 
750 #define AP_HTTP_METHODS_UNSET 0
751 #define AP_HTTP_METHODS_LENIENT 1
752 #define AP_HTTP_METHODS_REGISTERED 2
754 
755 #define AP_HTTP_CL_HEAD_ZERO_UNSET 0
756 #define AP_HTTP_CL_HEAD_ZERO_ENABLE 1
757 #define AP_HTTP_CL_HEAD_ZERO_DISABLE 2
759 
760 #define AP_HTTP_EXPECT_STRICT_UNSET 0
761 #define AP_HTTP_EXPECT_STRICT_ENABLE 1
762 #define AP_HTTP_EXPECT_STRICT_DISABLE 2
764 
768  unsigned int async_filter_set:1;
769 
772  unsigned int strict_host_check;
773  unsigned int merge_slashes;
775 
776 /* for AddOutputFiltersByType in core.c */
778 
779 /* for http_config.c */
781 
782 /* for mod_perl */
786 AP_CORE_DECLARE(const char *) ap_add_if_conf(apr_pool_t *p, core_dir_config *conf, void *url_config);
787 AP_CORE_DECLARE_NONSTD(const char *) ap_limit_section(cmd_parms *cmd, void *dummy, const char *arg);
788 
789 /* Core filters; not exported. */
794 
795 
797 AP_DECLARE(void) ap_set_server_protocol(server_rec* s, const char* proto);
798 
811 
812 /* ----------------------------------------------------------------------
813  *
814  * Runtime status/management
815  */
816 
817 typedef enum {
822 
823 typedef union {
824  const char *s_value;
825  long i_value;
827 } ap_mgmt_value;
828 
829 typedef struct {
830  const char *description;
831  const char *name;
835 
836 /* Handles for core filters */
841 
856  (apr_pool_t *p, const char * val, apr_hash_t *ht))
857 
858 /* ---------------------------------------------------------------------- */
859 
860 /* ----------------------------------------------------------------------
861  *
862  * I/O logging with mod_logio
863  */
864 
866  (conn_rec *c, apr_off_t bytes));
867 
869  (conn_rec *c, apr_off_t bytes));
870 
872 
873 /* ----------------------------------------------------------------------
874  *
875  * Error log formats
876  */
877 
883 typedef struct ap_errorlog_info {
887  const server_rec *s;
888 
892  const conn_rec *c;
893 
895  const request_rec *r;
898 
901 
903  const char *file;
905  int line;
906 
910  int level;
911 
914 
918  int startup;
919 
921  const char *format;
923 
924 #define AP_ERRORLOG_PROVIDER_GROUP "error_log_writer"
925 #define AP_ERRORLOG_PROVIDER_VERSION "0"
926 #define AP_ERRORLOG_DEFAULT_PROVIDER "file"
927 
929 #define AP_ERRORLOG_PROVIDER_ADD_EOL_STR 1
930 
932 
943  void * (*init)(apr_pool_t *p, server_rec *s);
944 
951  apr_status_t (*writer)(const ap_errorlog_info *info, void *handle,
952  const char *errstr, apr_size_t len);
953 
962  const char * (*parse_errorlog_arg)(cmd_parms *cmd, const char *arg);
963 
965  unsigned int flags;
966 };
967 
976  const char *arg, char *buf, int buflen);
977 
987  int flags);
988 
989 typedef struct ap_errorlog_handler {
991  int flags; /* for future extensions */
993 
995 #define AP_ERRORLOG_FLAG_FIELD_SEP 1
997 #define AP_ERRORLOG_FLAG_MESSAGE 2
999 #define AP_ERRORLOG_FLAG_REQUIRED 4
1001 #define AP_ERRORLOG_FLAG_NULL_AS_HYPHEN 8
1002 
1003 typedef struct {
1007  const char *arg;
1009  unsigned int flags;
1011  unsigned int min_loglevel;
1013 
1025  const char *errstr))
1026 
1029 
1030 /* ----------------------------------------------------------------------
1031  *
1032  * ident lookups with mod_ident
1033  */
1034 
1037 
1038 /* ----------------------------------------------------------------------
1039  *
1040  * authorization values with mod_authz_core
1041  */
1042 
1046 
1047 /* ----------------------------------------------------------------------
1048  *
1049  * authorization values with mod_access_compat
1050  */
1051 
1053 
1054 /* ---------------------------------------------------------------------- */
1055 
1060 AP_DECLARE(int) ap_state_query(int query_code);
1061 
1062 /*
1063  * possible values for query_code in ap_state_query()
1064  */
1065 
1067 #define AP_SQ_MAIN_STATE 0
1069 #define AP_SQ_RUN_MODE 1
1071 #define AP_SQ_CONFIG_GEN 2
1072 
1073 /*
1074  * return values for ap_state_query()
1075  */
1076 
1078 #define AP_SQ_NOT_SUPPORTED -1
1079 
1080 /* values returned for AP_SQ_MAIN_STATE */
1082 #define AP_SQ_MS_INITIAL_STARTUP 1
1084 #define AP_SQ_MS_CREATE_PRE_CONFIG 2
1086 #define AP_SQ_MS_DESTROY_CONFIG 3
1088 #define AP_SQ_MS_CREATE_CONFIG 4
1090 #define AP_SQ_MS_RUN_MPM 5
1092 #define AP_SQ_MS_EXITING 6
1093 
1094 /* values returned for AP_SQ_RUN_MODE */
1096 #define AP_SQ_RM_UNKNOWN 1
1098 #define AP_SQ_RM_NORMAL 2
1100 #define AP_SQ_RM_CONFIG_TEST 3
1102 #define AP_SQ_RM_CONFIG_DUMP 4
1103 
1104 
1105 /* ---------------------------------------------------------------------- */
1106 
1112 
1118  (conn_rec *c, struct apr_pollfd_t *pfd,
1120 
1121 
1135  struct apr_pollfd_t *pfd,
1136  apr_interval_time_t *ptimeout);
1137 
1140 #define AP_CORE_DEFAULT(X, Y, Z) (X ? X->Y : Z)
1141 
1142 #ifdef __cplusplus
1143 }
1144 #endif
1145 
1146 #endif /* !APACHE_HTTP_CORE_H */
Expression parser.
#define AP_DECLARE_HOOK(ret, name, args)
Definition: ap_hooks.h:74
APR Platform Definitions.
#define socket
Definition: apr_arch_os2calls.h:41
APR Hash Tables.
APR-UTIL registration of functions exported by modules.
APR Poll interface.
APR Table library.
struct ap_conf_vector_t ap_conf_vector_t
Definition: http_config.h:512
conn_rec * ap_create_slave_connection(conn_rec *c)
AP_DECLARE_DATA ap_filter_rec_t * ap_core_input_filter_handle
void ap_add_output_filters_by_type(request_rec *r)
const char * ap_ident_lookup(request_rec *r)
apr_port_t ap_get_server_port(const request_rec *r)
void ap_register_log_hooks(apr_pool_t *p)
apr_off_t ap_get_limit_req_body(const request_rec *r)
const char * ap_get_server_name_for_url(request_rec *r)
apr_status_t get_pollfd_from_conn(conn_rec *c, struct apr_pollfd_t *pfd, apr_interval_time_t *ptimeout)
void ap_add_file_conf(apr_pool_t *p, core_dir_config *conf, void *url_config)
int access_compat_ap_satisfies(request_rec *r)
int ap_exists_config_define(const char *name)
const char * ap_limit_section(cmd_parms *cmd, void *dummy, const char *arg)
void ap_logio_add_bytes_in(conn_rec *c, apr_off_t bytes)
int ap_state_query(int query_code)
AP_DECLARE_DATA ap_filter_rec_t * ap_subreq_core_filter_handle
apr_socket_t * ap_get_conn_socket(conn_rec *c)
server_signature_e
Server Signature Enumeration.
Definition: http_core.h:517
void ** ap_get_request_note(request_rec *r, apr_size_t note_num)
const char * ap_auth_type(request_rec *r)
apr_status_t ap_core_input_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mode_t mode, apr_read_type_e block, apr_off_t readbytes)
unsigned int overrides_t
Definition: http_core.h:483
AP_DECLARE_DATA ap_filter_rec_t * ap_content_length_filter_handle
int ap_core_translate(request_rec *r)
#define ap_get_core_module_config(v)
Definition: http_core.h:383
const char * authn_ap_auth_name(request_rec *r)
apr_size_t ap_get_read_buf_size(const request_rec *r)
struct ap_errorlog_info ap_errorlog_info
unsigned char allow_options_t
Definition: http_core.h:482
const char * ap_auth_name(request_rec *r)
const char * ap_document_root(request_rec *r)
const char * ap_get_server_name(request_rec *r)
AP_DECLARE_DATA ap_filter_rec_t * ap_core_output_filter_handle
char * ap_construct_url(apr_pool_t *p, const char *uri, request_rec *r)
int ap_satisfies(request_rec *r)
void ap_set_server_protocol(server_rec *s, const char *proto)
int ap_is_recursion_limit_exceeded(const request_rec *r)
apr_status_t ap_get_pollfd_from_conn(conn_rec *c, struct apr_pollfd_t *pfd, apr_interval_time_t *ptimeout)
void ap_custom_response(request_rec *r, int status, const char *string)
void ap_add_per_dir_conf(server_rec *s, void *dir_config)
void ap_register_config_hooks(apr_pool_t *p)
apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *b)
int authz_some_auth_required(request_rec *r)
apr_size_t ap_register_request_note(void)
void ap_add_per_url_conf(server_rec *s, void *url_config)
ap_mgmt_type_e
Definition: http_core.h:817
void ap_register_errorlog_handler(apr_pool_t *p, char *tag, ap_errorlog_handler_fn_t *handler, int flags)
apr_size_t ap_get_limit_xml_body(const request_rec *r)
int ap_allow_overrides(request_rec *r)
void ap_logio_add_bytes_out(conn_rec *c, apr_off_t bytes)
void ap_core_reorder_directories(apr_pool_t *, server_rec *)
const char * ap_add_if_conf(apr_pool_t *p, core_dir_config *conf, void *url_config)
struct ap_errorlog_handler ap_errorlog_handler
apr_status_t insert_network_bucket(conn_rec *c, apr_bucket_brigade *bb, apr_socket_t *socket)
apr_off_t ap_logio_get_last_bytes(conn_rec *c)
int ap_errorlog_handler_fn_t(const ap_errorlog_info *info, const char *arg, char *buf, int buflen)
Definition: http_core.h:975
const char * ap_get_server_protocol(server_rec *s)
const char * ap_get_remote_logname(request_rec *r)
unsigned long etag_components_t
Definition: http_core.h:491
const char * authn_ap_auth_type(request_rec *r)
#define ap_set_core_module_config(v, val)
Definition: http_core.h:385
int ap_allow_options(request_rec *r)
AP_DECLARE_DATA module core_module
@ srv_sig_on
Definition: http_core.h:520
@ srv_sig_off
Definition: http_core.h:519
@ srv_sig_unset
Definition: http_core.h:518
@ srv_sig_withmail
Definition: http_core.h:521
@ ap_mgmt_type_long
Definition: http_core.h:819
@ ap_mgmt_type_hash
Definition: http_core.h:820
@ ap_mgmt_type_string
Definition: http_core.h:818
apr_read_type_e
Definition: apr_buckets.h:62
#define APR_DECLARE_OPTIONAL_FN(ret, name, args)
Definition: apr_optional.h:50
apr_bucket_brigade ap_input_mode_t apr_read_type_e apr_off_t readbytes
Definition: mod_dav.h:2664
dav_resource int dav_locktoken dav_response int flags
Definition: mod_dav.h:1458
request_rec * r
Definition: mod_dav.h:518
const dav_liveprop_group const dav_liveprop_spec ** info
Definition: mod_dav.h:1055
int status
Definition: mod_dav.h:141
apr_bucket_brigade * bb
Definition: mod_dav.h:555
const char * s
Definition: mod_dav.h:1327
apr_bucket_brigade ap_input_mode_t mode
Definition: mod_dav.h:2662
const char const char * uri
Definition: mod_dav.h:631
const char * name
Definition: mod_dav.h:805
apr_bucket_brigade ap_input_mode_t apr_read_type_e block
Definition: mod_dav.h:2663
proxy_worker proxy_server_conf * conf
Definition: mod_proxy.h:657
int apr_status_t
Definition: apr_errno.h:44
struct apr_hash_t apr_hash_t
Definition: apr_hash.h:52
apr_uint16_t apr_port_t
Definition: apr_network_io.h:230
int apr_int32_t
Definition: apr.h:347
off_t apr_off_t
Definition: apr.h:396
size_t apr_size_t
Definition: apr.h:394
int64_t apr_int64_t
Definition: apr.h:386
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
apr_int64_t apr_interval_time_t
Definition: apr_time.h:55
const char * ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip)
const char * ap_get_useragent_host(request_rec *req, int type, int *str_is_ip)
int handler(request_rec *r)
int get_mgmt_items(apr_pool_t *p, const char *val, apr_hash_t *ht)
void error_log(const ap_errorlog_info *info, const char *errstr)
Apache Configuration.
#define AP_DECLARE_DATA
Definition: macros.h:15
#define AP_DECLARE(x)
Definition: macros.h:1
#define AP_CORE_DECLARE(x)
Definition: macros.h:3
#define AP_CORE_DECLARE_NONSTD(x)
Definition: macros.h:4
#define AP_DECLARE_NONSTD(x)
Definition: macros.h:2
Definition: http_core.h:1003
unsigned int flags
Definition: http_core.h:1009
ap_errorlog_handler_fn_t * func
Definition: http_core.h:1005
const char * arg
Definition: http_core.h:1007
unsigned int min_loglevel
Definition: http_core.h:1011
Definition: http_core.h:989
ap_errorlog_handler_fn_t * func
Definition: http_core.h:990
int flags
Definition: http_core.h:991
Definition: http_core.h:883
int module_index
Definition: http_core.h:908
apr_status_t status
Definition: http_core.h:913
int startup
Definition: http_core.h:918
const char * format
Definition: http_core.h:921
const request_rec * rmain
Definition: http_core.h:897
const char * file
Definition: http_core.h:903
apr_pool_t * pool
Definition: http_core.h:900
int level
Definition: http_core.h:910
int line
Definition: http_core.h:905
const request_rec * r
Definition: http_core.h:895
int using_provider
Definition: http_core.h:916
const server_rec * s
Definition: http_core.h:887
const conn_rec * c
Definition: http_core.h:892
Definition: http_core.h:933
apr_status_t(* writer)(const ap_errorlog_info *info, void *handle, const char *errstr, apr_size_t len)
Definition: http_core.h:951
unsigned int flags
Definition: http_core.h:965
Definition: ap_expr.h:41
This structure is used for recording information about the registered filters. It associates a name w...
Definition: util_filter.h:226
The representation of a filter chain.
Definition: util_filter.h:278
Definition: httpd.h:1372
Definition: http_core.h:829
const char * description
Definition: http_core.h:830
ap_mgmt_value v
Definition: http_core.h:833
ap_mgmt_type_e vtype
Definition: http_core.h:832
const char * name
Definition: http_core.h:831
Definition: ap_regex.h:111
Definition: apr_tables.h:62
Definition: apr_buckets.h:263
Definition: apr_poll.h:109
Definition: apr_arch_networkio.h:37
Definition: http_config.h:288
Structure to store things which are per connection.
Definition: httpd.h:1193
Per-directory configuration.
Definition: http_core.h:527
allow_options_t opts
Definition: http_core.h:540
unsigned d_is_fnmatch
Definition: http_core.h:567
int max_overlaps
Definition: http_core.h:655
unsigned add_default_charset
Definition: http_core.h:575
apr_hash_t * response_code_exprs
Definition: http_core.h:669
char * d
Definition: http_core.h:529
const char * output_filters
Definition: http_core.h:602
apr_array_header_t * sec_file
Definition: http_core.h:596
etag_components_t etag_add
Definition: http_core.h:610
int max_reversals
Definition: http_core.h:657
int max_ranges
Definition: http_core.h:653
unsigned int decode_encoded_slashes_set
Definition: http_core.h:660
apr_size_t read_buf_size
Definition: http_core.h:686
const char * handler
Definition: http_core.h:601
unsigned int enable_mmap
Definition: http_core.h:619
const char * mime_type
Definition: http_core.h:600
const char * input_filters
Definition: http_core.h:603
allow_options_t override_opts
Definition: http_core.h:544
const char * add_default_charset_name
Definition: http_core.h:576
server_signature_e server_signature
Definition: http_core.h:593
apr_off_t limit_req_body
Definition: http_core.h:588
apr_hash_t * cgi_var_rules
Definition: http_core.h:684
char ** response_code_strings
Definition: http_core.h:547
struct ap_logconf * log
Definition: http_core.h:643
unsigned int hostname_lookups
Definition: http_core.h:555
allow_options_t opts_add
Definition: http_core.h:541
apr_array_header_t * refs
Definition: http_core.h:663
apr_array_header_t * sec_if
Definition: http_core.h:597
unsigned int condition_ifelse
Definition: http_core.h:638
ap_regex_t * r
Definition: http_core.h:598
etag_components_t etag_remove
Definition: http_core.h:611
unsigned use_canonical_name
Definition: http_core.h:561
unsigned d_components
Definition: http_core.h:531
int accept_path_info
Definition: http_core.h:604
long limit_xml_body
Definition: http_core.h:589
ap_expr_info_t * expr_handler
Definition: http_core.h:681
unsigned int enable_sendfile
Definition: http_core.h:624
unsigned int qualify_redirect_url
Definition: http_core.h:680
unsigned int use_canonical_phys_port
Definition: http_core.h:629
apr_table_t * override_list
Definition: http_core.h:646
unsigned int allow_encoded_slashes_set
Definition: http_core.h:659
unsigned int allow_encoded_slashes
Definition: http_core.h:631
ap_expr_info_t * condition
Definition: http_core.h:640
unsigned int cgi_pass_auth
Definition: http_core.h:679
allow_options_t opts_remove
Definition: http_core.h:542
unsigned int decode_encoded_slashes
Definition: http_core.h:633
etag_components_t etag_bits
Definition: http_core.h:609
Per-request configuration.
Definition: http_core.h:394
char ** response_code_strings
Definition: http_core.h:409
int deliver_script
Definition: http_core.h:439
int suppress_charset
Definition: http_core.h:443
void ** notes
Definition: http_core.h:404
const char * document_root
Definition: http_core.h:416
const char * context_document_root
Definition: http_core.h:425
struct apr_bucket_brigade * bb
Definition: http_core.h:397
const char * context_prefix
Definition: http_core.h:429
Definition: http_core.h:695
char * gprof_dir
Definition: http_core.h:697
const char * ap_document_root
Definition: http_core.h:703
int http_expect_strict
Definition: http_core.h:763
const char * protocol
Definition: http_core.h:715
int merge_trailers
Definition: http_core.h:736
apr_array_header_t * error_log_conn
Definition: http_core.h:724
apr_array_header_t * conn_log_level
Definition: http_core.h:738
apr_array_header_t * error_log_req
Definition: http_core.h:725
char http_conformance
Definition: http_core.h:748
unsigned int async_filter_set
Definition: http_core.h:768
int trace_enable
Definition: http_core.h:732
apr_array_header_t * sec_dir
Definition: http_core.h:708
apr_int32_t flush_max_pipelined
Definition: http_core.h:771
int protocols_honor_order
Definition: http_core.h:766
apr_array_header_t * protocols
Definition: http_core.h:765
char http_methods
Definition: http_core.h:753
char http09_enable
Definition: http_core.h:743
apr_size_t flush_max_threshold
Definition: http_core.h:770
apr_table_t * accf_map
Definition: http_core.h:716
int http_cl_head_zero
Definition: http_core.h:758
unsigned int merge_slashes
Definition: http_core.h:773
apr_array_header_t * error_log_format
Definition: http_core.h:719
int redirect_limit
Definition: http_core.h:712
int async_filter
Definition: http_core.h:767
int subreq_limit
Definition: http_core.h:713
char * access_name
Definition: http_core.h:707
unsigned int strict_host_check
Definition: http_core.h:772
apr_array_header_t * sec_url
Definition: http_core.h:709
Definition: apreq_private_apache2.h:3
Definition: http_config.h:348
A structure that represents the current request.
Definition: httpd.h:856
A structure to keep track of authorization requirements.
Definition: http_core.h:316
char * requirement
Definition: http_core.h:320
apr_int64_t method_mask
Definition: http_core.h:318
A structure to store information for each virtual server.
Definition: httpd.h:1382
apr_pool_t * p
Definition: http_core.h:823
const char * s_value
Definition: http_core.h:824
apr_hash_t * h_value
Definition: http_core.h:826
long i_value
Definition: http_core.h:825
Apache filter library.
ap_input_mode_t
input filtering modes
Definition: util_filter.h:41