Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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_tables.h"
35 
36 #include "http_config.h"
37 
38 #if APR_HAVE_STRUCT_RLIMIT
39 #include <sys/time.h>
40 #include <sys/resource.h>
41 #endif
42 
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 /* ****************************************************************
49  *
50  * The most basic server code is encapsulated in a single module
51  * known as the core, which is just *barely* functional enough to
52  * serve documents, though not terribly well.
53  *
54  * Largely for NCSA back-compatibility reasons, the core needs to
55  * make pieces of its config structures available to other modules.
56  * The accessors are declared here, along with the interpretation
57  * of one of them (allow_options).
58  */
59 
69 #define OPT_NONE 0
70 
71 #define OPT_INDEXES 1
72 
73 #define OPT_INCLUDES 2
74 
75 #define OPT_SYM_LINKS 4
76 
77 #define OPT_EXECCGI 8
78 
79 #define OPT_UNSET 16
80 
81 #define OPT_INC_WITH_EXEC 32
82 
83 #define OPT_SYM_OWNER 64
84 
85 #define OPT_MULTI 128
86 
87 #define OPT_ALL (OPT_INDEXES|OPT_INCLUDES|OPT_INC_WITH_EXEC|OPT_SYM_LINKS|OPT_EXECCGI)
88 
99 #define REMOTE_HOST (0)
100 
105 #define REMOTE_NAME (1)
106 
110 #define REMOTE_NOLOOKUP (2)
111 
117 #define REMOTE_DOUBLE_REV (3)
118 
122 #define SATISFY_ALL 0
123 
124 #define SATISFY_ANY 1
125 
126 #define SATISFY_NOSPEC 2
127 
130 #define AP_MIN_BYTES_TO_WRITE 8000
131 
133 # define AP_DEFAULT_MAX_INTERNAL_REDIRECTS 10
134 
136 # define AP_DEFAULT_MAX_SUBREQ_DEPTH 10
137 
144 
151 
159 AP_DECLARE(const char *) ap_document_root(request_rec *r);
160 
184 AP_DECLARE(const char *) ap_get_useragent_host(request_rec *req, int type,
185  int *str_is_ip);
186 
211 AP_DECLARE(const char *) ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip);
212 
220 
221 /* Used for constructing self-referencing URLs, and things like SERVER_PORT,
222  * and SERVER_NAME.
223  */
231 AP_DECLARE(char *) ap_construct_url(apr_pool_t *p, const char *uri, request_rec *r);
232 
238 AP_DECLARE(const char *) ap_get_server_name(request_rec *r);
239 
248 
255 
262 
269 
277 AP_DECLARE(void) ap_custom_response(request_rec *r, int status, const char *string);
278 
285 
291 AP_DECLARE(int) ap_exists_config_define(const char *name);
292 /* FIXME! See STATUS about how */
294 
295 /* Authentication stuff. This is one of the places where compatibility
296  * with the old config files *really* hurts; they don't discriminate at
297  * all between different authentication schemes, meaning that we need
298  * to maintain common state for all of them in the core, and make it
299  * available to the other modules through interfaces.
300  */
301 
303 typedef struct require_line require_line;
304 
308 struct require_line {
312  char *requirement;
313 };
314 
320 AP_DECLARE(const char *) ap_auth_type(request_rec *r);
321 
327 AP_DECLARE(const char *) ap_auth_name(request_rec *r);
328 
340 
347 
356 
365 
372 
373 #ifndef AP_DEBUG
374 #define AP_CORE_MODULE_INDEX 0
375 #define ap_get_core_module_config(v) \
376  (((void **)(v))[AP_CORE_MODULE_INDEX])
377 #define ap_set_core_module_config(v, val) \
378  ((((void **)(v))[AP_CORE_MODULE_INDEX]) = (val))
379 #else
380 #define AP_CORE_MODULE_INDEX (AP_DEBUG_ASSERT(core_module.module_index == 0), 0)
381 #endif
382 
386 typedef struct {
390 
396  void **notes;
397 
401  char **response_code_strings; /* from ap_custom_response(), not from
402  * ErrorDocument
403  */
404 
408  const char *document_root;
409 
410  /*
411  * more fine-grained context information which is set by modules like
412  * mod_alias and mod_userdir
413  */
421  const char *context_prefix;
422 
432 
437 
438 /* Standard entries that are guaranteed to be accessible via
439  * ap_get_request_note() for each request (additional entries
440  * can be added with ap_register_request_note())
441  */
442 #define AP_NOTE_DIRECTORY_WALK 0
443 #define AP_NOTE_LOCATION_WALK 1
444 #define AP_NOTE_FILE_WALK 2
445 #define AP_NOTE_IF_WALK 3
446 #define AP_NUM_STD_NOTES 4
447 
456 
472 
473 
474 typedef unsigned char allow_options_t;
475 typedef unsigned int overrides_t;
476 
477 /*
478  * Bits of info that go into making an ETag for a file
479  * document. Why a long? Because char historically
480  * proved too short for Options, and int can be different
481  * sizes on different platforms.
482  */
483 typedef unsigned long etag_components_t;
484 
485 #define ETAG_UNSET 0
486 #define ETAG_NONE (1 << 0)
487 #define ETAG_MTIME (1 << 1)
488 #define ETAG_INODE (1 << 2)
489 #define ETAG_SIZE (1 << 3)
490 #define ETAG_ALL (ETAG_MTIME | ETAG_INODE | ETAG_SIZE)
491 /* This is the default value used */
492 #define ETAG_BACKWARD (ETAG_MTIME | ETAG_SIZE)
493 
494 /* Generic ON/OFF/UNSET for unsigned int foo :2 */
495 #define AP_CORE_CONFIG_OFF (0)
496 #define AP_CORE_CONFIG_ON (1)
497 #define AP_CORE_CONFIG_UNSET (2)
498 
499 /* Generic merge of flag */
500 #define AP_CORE_MERGE_FLAG(field, to, base, over) to->field = \
501  over->field != AP_CORE_CONFIG_UNSET \
502  ? over->field \
503  : base->field
504 
508 typedef enum {
514 
518 typedef struct {
520  char *d;
522  unsigned d_components;
523 
531  allow_options_t opts;
532  allow_options_t opts_add;
533  allow_options_t opts_remove;
534  overrides_t override;
535  allow_options_t override_opts;
536 
537  /* Used to be the custom response config. No longer used. */
538  char **response_code_strings; /* from ErrorDocument, not from
539  * ap_custom_response() */
540 
541  /* Hostname resolution etc */
542 #define HOSTNAME_LOOKUP_OFF 0
543 #define HOSTNAME_LOOKUP_ON 1
544 #define HOSTNAME_LOOKUP_DOUBLE 2
545 #define HOSTNAME_LOOKUP_UNSET 3
546  unsigned int hostname_lookups : 4;
547 
548  unsigned int content_md5 : 2; /* calculate Content-MD5? */
549 
550 #define USE_CANONICAL_NAME_OFF (0)
551 #define USE_CANONICAL_NAME_ON (1)
552 #define USE_CANONICAL_NAME_DNS (2)
553 #define USE_CANONICAL_NAME_UNSET (3)
554  unsigned use_canonical_name : 2;
555 
556  /* since is_fnmatch(conf->d) was being called so frequently in
557  * directory_walk() and its relatives, this field was created and
558  * is set to the result of that call.
559  */
560  unsigned d_is_fnmatch : 1;
561 
562  /* should we force a charset on any outgoing parameterless content-type?
563  * if so, which charset?
564  */
565 #define ADD_DEFAULT_CHARSET_OFF (0)
566 #define ADD_DEFAULT_CHARSET_ON (1)
567 #define ADD_DEFAULT_CHARSET_UNSET (2)
568  unsigned add_default_charset : 2;
570 
571  /* System Resource Control */
572 #ifdef RLIMIT_CPU
573  struct rlimit *limit_cpu;
574 #endif
575 #if defined (RLIMIT_DATA) || defined (RLIMIT_VMEM) || defined(RLIMIT_AS)
576  struct rlimit *limit_mem;
577 #endif
578 #ifdef RLIMIT_NPROC
579  struct rlimit *limit_nproc;
580 #endif
581  apr_off_t limit_req_body; /* limit on bytes in request msg body */
582  long limit_xml_body; /* limit on bytes in XML request msg body */
583 
584  /* logging options */
585 
587 
588  /* Access control */
592 
593  const char *mime_type; /* forced with ForceType */
594  const char *handler; /* forced by something other than SetHandler */
595  const char *output_filters; /* forced with SetOutputFilters */
596  const char *input_filters; /* forced with SetInputFilters */
597  int accept_path_info; /* forced with AcceptPathInfo */
598 
599  /*
600  * What attributes/data should be included in ETag generation?
601  */
602  etag_components_t etag_bits;
603  etag_components_t etag_add;
604  etag_components_t etag_remove;
605 
606  /*
607  * Run-time performance tuning
608  */
609 #define ENABLE_MMAP_OFF (0)
610 #define ENABLE_MMAP_ON (1)
611 #define ENABLE_MMAP_UNSET (2)
612  unsigned int enable_mmap : 2; /* whether files in this dir can be mmap'ed */
613 
614 #define ENABLE_SENDFILE_OFF (0)
615 #define ENABLE_SENDFILE_ON (1)
616 #define ENABLE_SENDFILE_UNSET (2)
617  unsigned int enable_sendfile : 2; /* files in this dir can be sendfile'ed */
618 
619 #define USE_CANONICAL_PHYS_PORT_OFF (0)
620 #define USE_CANONICAL_PHYS_PORT_ON (1)
621 #define USE_CANONICAL_PHYS_PORT_UNSET (2)
622  unsigned int use_canonical_phys_port : 2;
623 
624  unsigned int allow_encoded_slashes : 1; /* URLs may contain %2f w/o being
625  * pitched indiscriminately */
626  unsigned int decode_encoded_slashes : 1; /* whether to decode encoded slashes in URLs */
627 
628 #define AP_CONDITION_IF 1
629 #define AP_CONDITION_ELSE 2
630 #define AP_CONDITION_ELSEIF (AP_CONDITION_ELSE|AP_CONDITION_IF)
631  unsigned int condition_ifelse : 2; /* is this an <If>, <ElseIf>, or <Else> */
632 
633  ap_expr_info_t *condition; /* Conditionally merge <If> sections */
634 
636  struct ap_logconf *log;
637 
640 
641 #define AP_MAXRANGES_UNSET -1
642 #define AP_MAXRANGES_DEFAULT -2
643 #define AP_MAXRANGES_UNLIMITED -3
644 #define AP_MAXRANGES_NORANGES 0
645 
651 
652  unsigned int allow_encoded_slashes_set : 1;
653  unsigned int decode_encoded_slashes_set : 1;
654 
657 
658 #define AP_CGI_PASS_AUTH_OFF (0)
659 #define AP_CGI_PASS_AUTH_ON (1)
660 #define AP_CGI_PASS_AUTH_UNSET (2)
661 
666  unsigned int cgi_pass_auth : 2;
667 
673 
674  unsigned int qualify_redirect_url :2;
675  ap_expr_info_t *expr_handler; /* forced with SetHandler */
676 
680 
681 /* macro to implement off by default behaviour */
682 #define AP_SENDFILE_ENABLED(x) \
683  ((x) == ENABLE_SENDFILE_ON ? APR_SENDFILE_ENABLED : 0)
684 
685 /* Per-server core configuration */
686 
687 typedef struct {
688 
689  char *gprof_dir;
690 
691  /* Name translations --- we want the core to be able to do *something*
692  * so it's at least a minimally functional web server on its own (and
693  * can be tested that way). But let's keep it to the bare minimum:
694  */
695  const char *ap_document_root;
696 
697  /* Access control */
698 
699  char *access_name;
702 
703  /* recursion backstopper */
704  int redirect_limit; /* maximum number of internal redirects */
705  int subreq_limit; /* maximum nesting level of subrequests */
706 
707  const char *protocol;
709 
710  /* array of ap_errorlog_format_item for error log format string */
712  /*
713  * two arrays of arrays of ap_errorlog_format_item for additional information
714  * logged to the error log once per connection/request
715  */
718 
719  /* TRACE control */
720 #define AP_TRACE_UNSET -1
721 #define AP_TRACE_DISABLE 0
722 #define AP_TRACE_ENABLE 1
723 #define AP_TRACE_EXTENDED 2
725 #define AP_MERGE_TRAILERS_UNSET 0
726 #define AP_MERGE_TRAILERS_ENABLE 1
727 #define AP_MERGE_TRAILERS_DISABLE 2
729 
731 
732 #define AP_HTTP09_UNSET 0
733 #define AP_HTTP09_ENABLE 1
734 #define AP_HTTP09_DISABLE 2
736 
737 #define AP_HTTP_CONFORMANCE_UNSET 0
738 #define AP_HTTP_CONFORMANCE_UNSAFE 1
739 #define AP_HTTP_CONFORMANCE_STRICT 2
741 
742 #define AP_HTTP_METHODS_UNSET 0
743 #define AP_HTTP_METHODS_LENIENT 1
744 #define AP_HTTP_METHODS_REGISTERED 2
746 
747 #define AP_HTTP_CL_HEAD_ZERO_UNSET 0
748 #define AP_HTTP_CL_HEAD_ZERO_ENABLE 1
749 #define AP_HTTP_CL_HEAD_ZERO_DISABLE 2
751 
752 #define AP_HTTP_EXPECT_STRICT_UNSET 0
753 #define AP_HTTP_EXPECT_STRICT_ENABLE 1
754 #define AP_HTTP_EXPECT_STRICT_DISABLE 2
756 
760  unsigned int async_filter_set:1;
762 
763 /* for AddOutputFiltersByType in core.c */
765 
766 /* for http_config.c */
768 
769 /* for mod_perl */
771 AP_CORE_DECLARE(void) ap_add_per_url_conf(server_rec *s, void *url_config);
773 AP_CORE_DECLARE(const char *) ap_add_if_conf(apr_pool_t *p, core_dir_config *conf, void *url_config);
774 AP_CORE_DECLARE_NONSTD(const char *) ap_limit_section(cmd_parms *cmd, void *dummy, const char *arg);
775 
776 /* Core filters; not exported. */
778  ap_input_mode_t mode, apr_read_type_e block,
779  apr_off_t readbytes);
781 
782 
784 AP_DECLARE(void) ap_set_server_protocol(server_rec* s, const char* proto);
785 
786 typedef struct core_output_filter_ctx core_output_filter_ctx_t;
787 typedef struct core_filter_ctx core_ctx_t;
788 
789 typedef struct core_net_rec {
792 
795 
796  core_output_filter_ctx_t *out_ctx;
797  core_ctx_t *in_ctx;
798 } core_net_rec;
799 
812 
813 /* ----------------------------------------------------------------------
814  *
815  * Runtime status/management
816  */
817 
818 typedef enum {
823 
824 typedef union {
825  const char *s_value;
826  long i_value;
828 } ap_mgmt_value;
829 
830 typedef struct {
831  const char *description;
832  const char *name;
836 
837 /* Handles for core filters */
843 
858  (apr_pool_t *p, const char * val, apr_hash_t *ht))
859 
860 /* ---------------------------------------------------------------------- */
861 
862 /* ----------------------------------------------------------------------
863  *
864  * I/O logging with mod_logio
865  */
866 
868  (conn_rec *c, apr_off_t bytes));
869 
871  (conn_rec *c, apr_off_t bytes));
872 
874 
875 /* ----------------------------------------------------------------------
876  *
877  * Error log formats
878  */
879 
885 typedef struct ap_errorlog_info {
889  const server_rec *s;
890 
894  const conn_rec *c;
895 
897  const request_rec *r;
900 
903 
905  const char *file;
907  int line;
908 
912  int level;
913 
916 
920  int startup;
921 
923  const char *format;
925 
926 #define AP_ERRORLOG_PROVIDER_GROUP "error_log_writer"
927 #define AP_ERRORLOG_PROVIDER_VERSION "0"
928 #define AP_ERRORLOG_DEFAULT_PROVIDER "file"
929 
931 #define AP_ERRORLOG_PROVIDER_ADD_EOL_STR 1
932 
934 
945  void * (*init)(apr_pool_t *p, server_rec *s);
946 
953  apr_status_t (*writer)(const ap_errorlog_info *info, void *handle,
954  const char *errstr, apr_size_t len);
955 
964  const char * (*parse_errorlog_arg)(cmd_parms *cmd, const char *arg);
965 
967  unsigned int flags;
968 };
969 
978  const char *arg, char *buf, int buflen);
979 
989  int flags);
990 
991 typedef struct ap_errorlog_handler {
993  int flags; /* for future extensions */
995 
997 #define AP_ERRORLOG_FLAG_FIELD_SEP 1
998 
999 #define AP_ERRORLOG_FLAG_MESSAGE 2
1000 
1001 #define AP_ERRORLOG_FLAG_REQUIRED 4
1002 
1003 #define AP_ERRORLOG_FLAG_NULL_AS_HYPHEN 8
1004 
1005 typedef struct {
1009  const char *arg;
1011  unsigned int flags;
1013  unsigned int min_loglevel;
1015 
1027  const char *errstr))
1028 
1031 
1032 /* ----------------------------------------------------------------------
1033  *
1034  * ident lookups with mod_ident
1035  */
1036 
1038  (request_rec *r));
1039 
1040 /* ----------------------------------------------------------------------
1041  *
1042  * authorization values with mod_authz_core
1043  */
1044 
1048 
1049 /* ----------------------------------------------------------------------
1050  *
1051  * authorization values with mod_access_compat
1052  */
1053 
1055 
1056 /* ---------------------------------------------------------------------- */
1057 
1062 AP_DECLARE(int) ap_state_query(int query_code);
1063 
1064 /*
1065  * possible values for query_code in ap_state_query()
1066  */
1067 
1069 #define AP_SQ_MAIN_STATE 0
1070 
1071 #define AP_SQ_RUN_MODE 1
1072 
1073 #define AP_SQ_CONFIG_GEN 2
1074 
1075 /*
1076  * return values for ap_state_query()
1077  */
1078 
1080 #define AP_SQ_NOT_SUPPORTED -1
1081 
1082 /* values returned for AP_SQ_MAIN_STATE */
1084 #define AP_SQ_MS_INITIAL_STARTUP 1
1085 
1086 #define AP_SQ_MS_CREATE_PRE_CONFIG 2
1087 
1088 #define AP_SQ_MS_DESTROY_CONFIG 3
1089 
1090 #define AP_SQ_MS_CREATE_CONFIG 4
1091 
1092 #define AP_SQ_MS_RUN_MPM 5
1093 
1094 #define AP_SQ_MS_EXITING 6
1095 
1096 /* values returned for AP_SQ_RUN_MODE */
1098 #define AP_SQ_RM_UNKNOWN 1
1099 
1100 #define AP_SQ_RM_NORMAL 2
1101 
1102 #define AP_SQ_RM_CONFIG_TEST 3
1103 
1104 #define AP_SQ_RM_CONFIG_DUMP 4
1105 
1106 
1107 /* ---------------------------------------------------------------------- */
1108 
1114 
1115 
1118 #define AP_CORE_DEFAULT(X, Y, Z) (X ? X->Y : Z)
1119 
1120 #ifdef __cplusplus
1121 }
1122 #endif
1123 
1124 #endif /* !APACHE_HTTP_CORE_H */
1125 
#define socket
Definition: apr_arch_os2calls.h:41
This structure is used for recording information about the registered filters. It associates a name w...
Definition: util_filter.h:226
apr_array_header_t * sec_file
Definition: http_core.h:589
char ** response_code_strings
Definition: http_core.h:401
core_ctx_t * in_ctx
Definition: http_core.h:797
allow_options_t opts_remove
Definition: http_core.h:533
size_t apr_size_t
Definition: apr.h:375
ap_mgmt_value v
Definition: http_core.h:834
Definition: http_core.h:991
ap_input_mode_t
input filtering modes
Definition: util_filter.h:41
apr_table_t * accf_map
Definition: http_core.h:708
A structure to keep track of authorization requirements.
Definition: http_core.h:308
#define AP_CORE_DECLARE(x)
Definition: macros.h:3
etag_components_t etag_remove
Definition: http_core.h:604
Apache Configuration.
const char * format
Definition: http_core.h:923
int authz_some_auth_required(request_rec *r)
void ap_register_errorlog_handler(apr_pool_t *p, char *tag, ap_errorlog_handler_fn_t *handler, int flags)
apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *b)
apr_off_t limit_req_body
Definition: http_core.h:581
char * d
Definition: http_core.h:520
Definition: apr_tables.h:62
struct ap_errorlog_info ap_errorlog_info
AP_DECLARE_DATA ap_filter_rec_t * ap_request_core_filter_handle
const char * ap_get_useragent_host(request_rec *req, int type, int *str_is_ip)
int deliver_script
Definition: http_core.h:431
int max_ranges
Definition: http_core.h:646
Definition: http_core.h:510
Definition: ap_expr.h:41
const char * ap_auth_name(request_rec *r)
unsigned d_components
Definition: http_core.h:522
conn_rec * ap_create_slave_connection(conn_rec *c)
ap_expr_info_t * expr_handler
Definition: http_core.h:675
etag_components_t etag_add
Definition: http_core.h:603
apr_status_t status
Definition: http_core.h:915
AP_DECLARE_DATA module core_module
const char * ap_get_server_name(request_rec *r)
The representation of a filter chain.
Definition: util_filter.h:273
char * requirement
Definition: http_core.h:312
int access_compat_ap_satisfies(request_rec *r)
server_signature_e server_signature
Definition: http_core.h:586
const conn_rec * c
Definition: http_core.h:894
conn_rec * c
Definition: http_core.h:794
apr_array_header_t * error_log_conn
Definition: http_core.h:716
#define AP_CORE_DECLARE_NONSTD(x)
Definition: macros.h:4
void ap_add_file_conf(apr_pool_t *p, core_dir_config *conf, void *url_config)
#define AP_DECLARE(x)
Definition: macros.h:1
const char * ap_document_root(request_rec *r)
apr_hash_t * h_value
Definition: http_core.h:827
const char * context_document_root
Definition: http_core.h:417
apr_status_t(* writer)(const ap_errorlog_info *info, void *handle, const char *errstr, apr_size_t len)
Definition: http_core.h:953
#define ap_get_core_module_config(v)
Definition: http_core.h:375
void ap_custom_response(request_rec *r, int status, const char *string)
const char * ap_ident_lookup(request_rec *r)
Definition: http_core.h:509
int startup
Definition: http_core.h:920
const char * s_value
Definition: http_core.h:825
struct core_filter_ctx core_ctx_t
Definition: http_core.h:787
APR Hash Tables.
unsigned int flags
Definition: http_core.h:967
int get_mgmt_items(apr_pool_t *p, const char *val, apr_hash_t *ht)
Definition: http_core.h:687
apr_hash_t * response_code_exprs
Definition: http_core.h:672
int http_cl_head_zero
Definition: http_core.h:750
#define AP_DECLARE_NONSTD(x)
Definition: macros.h:2
const request_rec * rmain
Definition: http_core.h:899
apr_array_header_t * refs
Definition: http_core.h:656
ap_expr_info_t * condition
Definition: http_core.h:633
struct apr_bucket_brigade * bb
Definition: http_core.h:389
apr_int64_t method_mask
Definition: http_core.h:310
const char const char * uri
Definition: mod_dav.h:614
Definition: apr_buckets.h:258
int handler(request_rec *r)
apr_array_header_t * sec_dir
Definition: http_core.h:700
ap_regex_t * r
Definition: http_core.h:591
Structure to store things which are per connection.
Definition: httpd.h:1116
char ** response_code_strings
Definition: http_core.h:538
apr_socket_t * ap_get_conn_socket(conn_rec *c)
apr_size_t ap_get_limit_xml_body(const request_rec *r)
AP_DECLARE_DATA ap_filter_rec_t * ap_core_output_filter_handle
APR-UTIL registration of functions exported by modules.
Definition: http_core.h:830
int module_index
Definition: http_core.h:910
int ap_is_recursion_limit_exceeded(const request_rec *r)
apr_port_t ap_get_server_port(const request_rec *r)
const char * handler
Definition: http_core.h:594
void ap_add_output_filters_by_type(request_rec *r)
char http_conformance
Definition: http_core.h:740
char http09_enable
Definition: http_core.h:735
struct ap_logconf * log
Definition: http_core.h:636
const char * ap_add_if_conf(apr_pool_t *p, core_dir_config *conf, void *url_config)
#define AP_DECLARE_HOOK(ret, name, args)
Definition: ap_hooks.h:74
Definition: http_config.h:295
int http_expect_strict
Definition: http_core.h:755
Expression parser.
AP_DECLARE_DATA ap_filter_rec_t * ap_subreq_core_filter_handle
apr_bucket_brigade * bb
Definition: mod_dav.h:552
server_signature_e
Server Signature Enumeration.
Definition: http_core.h:508
const char * ap_get_remote_logname(request_rec *r)
int redirect_limit
Definition: http_core.h:704
Definition: http_core.h:512
unsigned long etag_components_t
Definition: http_core.h:483
Definition: http_core.h:819
const char * document_root
Definition: http_core.h:408
Per-directory configuration.
Definition: http_core.h:518
A structure to store information for each virtual server.
Definition: httpd.h:1310
ap_mgmt_type_e
Definition: http_core.h:818
char * access_name
Definition: http_core.h:699
const char * ap_get_remote_host(conn_rec *conn, void *dir_config, int type, int *str_is_ip)
int ap_allow_overrides(request_rec *r)
long i_value
Definition: http_core.h:826
etag_components_t etag_bits
Definition: http_core.h:602
int async_filter
Definition: http_core.h:759
int using_provider
Definition: http_core.h:918
apr_array_header_t * protocols
Definition: http_core.h:757
Definition: apr_arch_networkio.h:37
int ap_satisfies(request_rec *r)
int subreq_limit
Definition: http_core.h:705
apr_array_header_t * error_log_req
Definition: http_core.h:717
void ** notes
Definition: http_core.h:396
APR Table library.
AP_DECLARE_DATA ap_filter_rec_t * ap_content_length_filter_handle
const char * protocol
Definition: http_core.h:707
Definition: ap_regex.h:107
Definition: http_core.h:824
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)
Definition: apreq_private_apache2.h:3
allow_options_t override_opts
Definition: http_core.h:535
void ap_core_reorder_directories(apr_pool_t *, server_rec *)
APR Platform Definitions.
int trace_enable
Definition: http_core.h:724
const char * authn_ap_auth_name(request_rec *r)
char http_methods
Definition: http_core.h:745
Definition: http_core.h:820
apr_table_t * override_list
Definition: http_core.h:639
void ap_logio_add_bytes_in(conn_rec *c, apr_off_t bytes)
const char * ap_get_server_name_for_url(request_rec *r)
Per-request configuration.
Definition: http_core.h:386
int accept_path_info
Definition: http_core.h:597
struct apr_hash_t apr_hash_t
Definition: apr_hash.h:52
const request_rec * r
Definition: http_core.h:897
const char * ap_document_root
Definition: http_core.h:695
const dav_liveprop_group const dav_liveprop_spec ** info
Definition: mod_dav.h:966
const server_rec * s
Definition: http_core.h:889
unsigned char allow_options_t
Definition: http_core.h:474
const char * mime_type
Definition: http_core.h:593
void ap_add_per_url_conf(server_rec *s, void *url_config)
apr_pool_t * p
void ap_logio_add_bytes_out(conn_rec *c, apr_off_t bytes)
const char * input_filters
Definition: http_core.h:596
struct core_net_rec core_net_rec
apr_hash_t * cgi_var_rules
Definition: http_core.h:678
struct ap_errorlog_handler ap_errorlog_handler
int max_overlaps
Definition: http_core.h:648
apr_status_t insert_network_bucket(conn_rec *c, apr_bucket_brigade *bb, apr_socket_t *socket)
apr_array_header_t * sec_if
Definition: http_core.h:590
const char * description
Definition: http_core.h:831
apr_read_type_e
Definition: apr_buckets.h:57
int ap_exists_config_define(const char *name)
int line
Definition: http_core.h:907
A structure that represents the current request.
Definition: httpd.h:806
Apache filter library.
int merge_trailers
Definition: http_core.h:728
const char * authn_ap_auth_type(request_rec *r)
#define AP_DECLARE_DATA
Definition: macros.h:15
const char * context_prefix
Definition: http_core.h:421
core_output_filter_ctx_t * out_ctx
Definition: http_core.h:796
int status
Definition: mod_dav.h:141
const char * add_default_charset_name
Definition: http_core.h:569
void ap_register_config_hooks(apr_pool_t *p)
apr_off_t ap_get_limit_req_body(const request_rec *r)
void ap_set_server_protocol(server_rec *s, const char *proto)
int ap_allow_options(request_rec *r)
void ** ap_get_request_note(request_rec *r, apr_size_t note_num)
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
char * gprof_dir
Definition: http_core.h:689
const char * ap_limit_section(cmd_parms *cmd, void *dummy, const char *arg)
struct core_output_filter_ctx core_output_filter_ctx_t
Definition: http_core.h:786
long apr_int64_t
Definition: apr.h:371
const char * name
Definition: mod_dav.h:726
unsigned int min_loglevel
Definition: http_core.h:1013
apr_size_t ap_register_request_note(void)
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
const char * arg
Definition: http_core.h:1009
void ap_register_log_hooks(apr_pool_t *p)
const char * ap_auth_type(request_rec *r)
apr_array_header_t * conn_log_level
Definition: http_core.h:730
int ap_errorlog_handler_fn_t(const ap_errorlog_info *info, const char *arg, char *buf, int buflen)
Definition: http_core.h:977
Definition: http_config.h:355
int ap_state_query(int query_code)
int apr_status_t
Definition: apr_errno.h:44
request_rec * r
Definition: mod_dav.h:515
ap_errorlog_handler_fn_t * func
Definition: http_core.h:992
unsigned int flags
Definition: http_core.h:1011
#define APR_DECLARE_OPTIONAL_FN(ret, name, args)
Definition: apr_optional.h:50
Definition: http_core.h:789
#define ap_set_core_module_config(v, val)
Definition: http_core.h:377
const char * name
Definition: http_core.h:832
apr_off_t ap_logio_get_last_bytes(conn_rec *c)
Definition: http_core.h:885
apr_uint16_t apr_port_t
Definition: apr_network_io.h:257
apr_array_header_t * error_log_format
Definition: http_core.h:711
ap_errorlog_handler_fn_t * func
Definition: http_core.h:1007
char * ap_construct_url(apr_pool_t *p, const char *uri, request_rec *r)
ap_mgmt_type_e vtype
Definition: http_core.h:833
Definition: http_core.h:821
int ap_core_translate(request_rec *r)
apr_array_header_t * sec_url
Definition: http_core.h:701
Definition: http_core.h:1005
proxy_worker proxy_server_conf * conf
Definition: mod_proxy.h:611
long limit_xml_body
Definition: http_core.h:582
struct ap_conf_vector_t ap_conf_vector_t
Definition: http_config.h:519
int suppress_charset
Definition: http_core.h:435
allow_options_t opts
Definition: http_core.h:531
Definition: httpd.h:1300
void error_log(const ap_errorlog_info *info, const char *errstr)
int level
Definition: http_core.h:912
dav_resource int dav_locktoken dav_response int flags
Definition: mod_dav.h:1346
int protocols_honor_order
Definition: http_core.h:758
int max_reversals
Definition: http_core.h:650
const char * file
Definition: http_core.h:905
const char * output_filters
Definition: http_core.h:595
apr_pool_t * pool
Definition: http_core.h:902
off_t apr_off_t
Definition: apr.h:377
allow_options_t opts_add
Definition: http_core.h:532
apr_socket_t * client_socket
Definition: http_core.h:791
int flags
Definition: http_core.h:993
Definition: http_core.h:511
void ap_add_per_dir_conf(server_rec *s, void *dir_config)
const char * ap_get_server_protocol(server_rec *s)
unsigned int overrides_t
Definition: http_core.h:475
Definition: http_core.h:935
AP_DECLARE_DATA ap_filter_rec_t * ap_core_input_filter_handle