Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

http_core.h File Reference

#include "apr.h"
#include "apr_hash.h"
#include "apr_optional.h"
#include "util_filter.h"

Include dependency graph for http_core.h:

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

Go to the source code of this file.

Namespaces

namespace  CORE

Defines

#define OPT_NONE   0
#define OPT_INDEXES   1
#define OPT_INCLUDES   2
#define OPT_SYM_LINKS   4
#define OPT_EXECCGI   8
#define OPT_UNSET   16
#define OPT_INCNOEXEC   32
#define OPT_SYM_OWNER   64
#define OPT_MULTI   128
#define OPT_ALL   (OPT_INDEXES|OPT_INCLUDES|OPT_SYM_LINKS|OPT_EXECCGI)
#define REMOTE_HOST   (0)
#define REMOTE_NAME   (1)
#define REMOTE_NOLOOKUP   (2)
#define REMOTE_DOUBLE_REV   (3)
#define SATISFY_ALL   0
#define SATISFY_ANY   1
#define SATISFY_NOSPEC   2
#define AP_MIN_BYTES_TO_WRITE   8000
#define AP_DEFAULT_MAX_INTERNAL_REDIRECTS   10
#define AP_DEFAULT_MAX_SUBREQ_DEPTH   10

Typedefs

typedef require_line require_line

Enumerations

enum  ap_mgmt_type_e { ap_mgmt_type_string, ap_mgmt_type_long, ap_mgmt_type_hash }

Functions

 AP_DECLARE (int) ap_allow_options(request_rec *r)
 AP_DECLARE (const char *) ap_default_type(request_rec *r)
 AP_DECLARE (char *) ap_construct_url(apr_pool_t *p
 AP_DECLARE (apr_port_t) ap_get_server_port(const request_rec *r)
 AP_DECLARE (apr_off_t) ap_get_limit_req_body(const request_rec *r)
 AP_DECLARE (size_t) ap_get_limit_xml_body(const request_rec *r)
 AP_DECLARE (void) ap_custom_response(request_rec *r
 AP_DECLARE_NONSTD (int) ap_core_translate(request_rec *r)
 AP_DECLARE (const apr_array_header_t *) ap_requires(request_rec *r)
 AP_DECLARE_HOOK (int, get_mgmt_items,(apr_pool_t *p, const char *val, apr_hash_t *ht)) APR_DECLARE_OPTIONAL_FN(void

Variables

void * dir_config
void int type
void int intstr_is_ip
const char * uri
const char request_recr
int status
int const char * string
AP_DECLARE_DATA ap_filter_rec_tap_subreq_core_filter_handle
AP_DECLARE_DATA ap_filter_rec_tap_core_output_filter_handle
AP_DECLARE_DATA ap_filter_rec_tap_content_length_filter_handle
AP_DECLARE_DATA ap_filter_rec_tap_net_time_filter_handle
AP_DECLARE_DATA ap_filter_rec_tap_core_input_filter_handle
 ap_logio_add_bytes_out
conn_recc
conn_rec apr_off_t bytes


Define Documentation

#define AP_DEFAULT_MAX_INTERNAL_REDIRECTS   10
 

Definition at line 96 of file http_core.h.

#define AP_DEFAULT_MAX_SUBREQ_DEPTH   10
 

Definition at line 99 of file http_core.h.

#define AP_MIN_BYTES_TO_WRITE   8000
 

Definition at line 93 of file http_core.h.

Referenced by APR_OPTIONAL_FN_TYPE(), and send_parsed_content().

#define OPT_ALL   (OPT_INDEXES|OPT_INCLUDES|OPT_SYM_LINKS|OPT_EXECCGI)
 

Definition at line 60 of file http_core.h.

Referenced by APR_HOOK_STRUCT(), and set_options().

#define OPT_EXECCGI   8
 

Definition at line 55 of file http_core.h.

Referenced by cgi_handler(), cgid_handler(), isapi_handler(), and set_options().

#define OPT_INCLUDES   2
 

Definition at line 53 of file http_core.h.

Referenced by includes_filter(), merge_core_dir_configs(), and set_options().

#define OPT_INCNOEXEC   32
 

Definition at line 57 of file http_core.h.

Referenced by includes_filter(), merge_core_dir_configs(), and set_options().

#define OPT_INDEXES   1
 

Definition at line 52 of file http_core.h.

Referenced by handle_autoindex(), and set_options().

#define OPT_MULTI   128
 

Definition at line 59 of file http_core.h.

Referenced by handle_multi(), and set_options().

#define OPT_NONE   0
 

Definition at line 51 of file http_core.h.

Referenced by APR_HOOK_STRUCT(), and set_options().

#define OPT_SYM_LINKS   4
 

Definition at line 54 of file http_core.h.

Referenced by hook_fixup(), resolve_symlink(), and set_options().

#define OPT_SYM_OWNER   64
 

Definition at line 58 of file http_core.h.

Referenced by hook_fixup(), resolve_symlink(), and set_options().

#define OPT_UNSET   16
 

Definition at line 56 of file http_core.h.

Referenced by APR_HOOK_STRUCT(), core_opts_merge(), and merge_core_dir_configs().

#define REMOTE_DOUBLE_REV   (3)
 

Definition at line 85 of file http_core.h.

Referenced by find_allowdeny().

#define REMOTE_HOST   (0)
 

Definition at line 67 of file http_core.h.

Referenced by AP_DECLARE().

#define REMOTE_NAME   (1)
 

Definition at line 73 of file http_core.h.

Referenced by log_remote_host(), lookup_variable(), make_cookie(), match_headers(), and ssl_var_lookup().

#define REMOTE_NOLOOKUP   (2)
 

Definition at line 78 of file http_core.h.

Referenced by rewritelog().

#define SATISFY_ALL   0
 

Definition at line 87 of file http_core.h.

Referenced by AP_DECLARE(), and satisfy().

#define SATISFY_ANY   1
 

Definition at line 88 of file http_core.h.

Referenced by AP_DECLARE(), check_dir_access(), and satisfy().

#define SATISFY_NOSPEC   2
 

Definition at line 89 of file http_core.h.

Referenced by AP_DECLARE(), APR_HOOK_STRUCT(), merge_core_dir_configs(), and satisfy().


Typedef Documentation

typedef struct require_line require_line
 

Definition at line 248 of file http_core.h.


Enumeration Type Documentation

enum ap_mgmt_type_e
 

Enumeration values:
ap_mgmt_type_string 
ap_mgmt_type_long 
ap_mgmt_type_hash 

Definition at line 571 of file http_core.h.


Function Documentation

AP_DECLARE const apr_array_header_t  ) 
 

Retrieve information about all of the requires directives for this request

Parameters:
r The current request
Returns:
An array of all requires directives for this request const apr_array_header_t *ap_requires(request_rec *r)

Definition at line 677 of file core.c.

AP_DECLARE void   ) 
 

Install a custom response handler for a given status

Parameters:
r The current request
status The status for which the custom response should be used
string The custom response. This can be a static string, a file or a URL

Definition at line 1271 of file http_protocol.c.

AP_DECLARE size_t   )  const
 

Return the limit on bytes in XML request msg body

Parameters:
r The current request
Returns:
the maximum number of bytes in XML request msg body size_t ap_get_limit_xml_body(const request_rec *r)

AP_DECLARE apr_off_t   )  const
 

Return the limit on bytes in request msg body

Parameters:
r The current request
Returns:
the maximum number of bytes in the request msg body apr_off_t ap_get_limit_req_body(const request_rec *r)

AP_DECLARE apr_port_t   )  const
 

Get the current server port

Parameters:
The current request
Returns:
The server's port apr_port_t ap_get_server_port(const request_rec *r)

AP_DECLARE char *   ) 
 

build a fully qualified URL from the uri and information in the request rec

Parameters:
p The pool to allocate the URL from
uri The path to the requested file
r The current request
Returns:
A fully qualified URL char *ap_construct_url(apr_pool_t *p, const char *uri, request_rec *r)

AP_DECLARE int   ) 
 

Get XML post data and parse it

Parameters:
r The current request
pdoc The XML post data
Returns:
HTTP status code int ap_xml_parse_input(request_rec *r, apr_xml_doc **pdoc)

Definition at line 445 of file http_protocol.c.

AP_DECLARE_NONSTD int   ) 
 

Read headers strings from a script, ensuring that the output is valid. If the output is valid, then the headers are added to the headers out of the current request

Parameters:
r The current request
buffer Empty when calling the function. On output, if there was an error, the string that cause the error is stored here.
termch Pointer to the last character parsed.
termarg Pointer to an int to capture the last argument parsed.
args String arguments to parse consecutively for headers, a NULL argument terminates the list.
Returns:
HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise int ap_scan_script_header_err_core(request_rec *r, char *buffer, int (*getsfunc)(char *, int, void *), void *getsfunc_data)

Definition at line 1365 of file http_protocol.c.


Variable Documentation

AP_DECLARE_DATA ap_filter_rec_t* ap_content_length_filter_handle
 

Referenced by http_create_request(), and register_hooks().

AP_DECLARE_DATA ap_filter_rec_t* ap_core_input_filter_handle
 

Referenced by core_pre_connection(), and register_hooks().

AP_DECLARE_DATA ap_filter_rec_t* ap_core_output_filter_handle
 

Referenced by core_pre_connection(), and register_hooks().

ap_logio_add_bytes_out
 

Definition at line 620 of file http_core.h.

Referenced by core_post_config(), and register_hooks().

AP_DECLARE_DATA ap_filter_rec_t* ap_net_time_filter_handle
 

Referenced by core_create_req(), and register_hooks().

AP_DECLARE_DATA ap_filter_rec_t* ap_subreq_core_filter_handle
 

Referenced by emit_head(), emit_tail(), internal_internal_redirect(), make_sub_request(), and register_hooks().

conn_rec apr_off_t bytes
 

Definition at line 620 of file http_core.h.

Referenced by chunk_filter(), main(), read_with_timeout(), ssl_io_input_getline(), ssl_io_input_read(), status_handler(), test_buffered_write_size(), and test_write().

conn_rec* c
 

Definition at line 620 of file http_core.h.

void* dir_config
 

Definition at line 159 of file http_core.h.

Referenced by ap_walk_config_sub(), set_expiresactive(), set_expiresbytype(), and set_expiresdefault().

request_rec * r
 

Definition at line 244 of file mod_proxy.h.

Referenced by add_proxy(), add_redirect_internal(), AP_DECLARE(), ap_process_http_connection(), ap_proxy_send_dir_filter(), APU_DECLARE(), APU_DECLARE_NONSTD(), bucketeer_out_filter(), cache_out_filter(), cache_save_filter(), cached_explode(), CaseFilterInFilter(), CaseFilterOutFilter(), cgid_child_errfn(), cgid_server(), child_errfn(), create_uncompress_child(), deflate_in_filter(), deflate_out_filter(), drain_available_output(), ef_output_filter(), expires_filter(), find_default_item(), get_random_info(), GetServerVariable(), includes_filter(), main(), proxysection(), read_connection(), read_type_map(), read_types_multi(), ReadClient(), res_name_from_filename(), send_downstream(), send_eos(), send_parsed_content(), ServerSupportFunction(), ssl_callback_SSLVerify(), ssl_io_filter_Upgrade(), and WriteClient().

void int int* str_is_ip
 

Definition at line 159 of file http_core.h.

const char * string
 

Definition at line 1529 of file httpd.h.

Referenced by add_password(), and ssl_expr_eval_word().

const char * uri
 

Definition at line 544 of file mod_dav.h.

Referenced by ap_proxy_connect_handler(), ap_proxy_ftp_handler(), ap_proxy_http_handler(), apply_rewrite_rule(), APR_OPTIONAL_FN_TYPE(), dav_fs_get_parent_resource(), dav_process_if_header(), dav_propdb_define_namespaces(), dav_propdb_map_namespaces(), dav_propdb_open(), dav_validate_resource_state(), mva_translate(), read_request_line(), storeAtts(), and try_alias_list().