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

http_request.h File Reference

Apache Request library. More...

#include "apr_hooks.h"
#include "util_filter.h"

Include dependency graph for http_request.h:

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

Go to the source code of this file.

Defines

#define AP_SUBREQ_NO_ARGS   0
#define AP_SUBREQ_MERGE_ARGS   1
#define MERGE_ALLOW   0
#define REPLACE_ALLOW   1

Functions

 AP_DECLARE (int) ap_process_request_internal(request_rec *r)
 AP_DECLARE (request_rec *) ap_sub_req_lookup_uri(const char *new_uri
 AP_CORE_DECLARE_NONSTD (apr_status_t) ap_sub_req_output_filter(ap_filter_t *f
 AP_DECLARE (void) ap_destroy_sub_req(request_rec *r)
 AP_DECLARE_HOOK (int, create_request,(request_rec *r)) AP_DECLARE_HOOK(int
request_rec *r AP_DECLARE_HOOK (int, map_to_storage,(request_rec *r)) AP_DECLARE_HOOK(int
request_rec *r request_rec *r AP_DECLARE_HOOK (int, fixups,(request_rec *r)) AP_DECLARE_HOOK(int
request_rec *r request_rec
*r request_rec *r 
AP_DECLARE_HOOK (int, access_checker,(request_rec *r)) AP_DECLARE_HOOK(int
request_rec *r request_rec
*r request_rec *r request_rec
*r 
AP_DECLARE_HOOK (void, insert_filter,(request_rec *r)) AP_DECLARE(int) ap_location_walk(request_rec *r)

Variables

const request_recr
const request_rec ap_filter_tnext_filter
const request_rec int subtype
const char * new_uri
apr_bucket_brigadebb
apr_time_t dependency_mtime
int reset
 translate_name
request_rec *r check_user_id
request_rec *r request_rec *r type_checker
request_rec *r request_rec
*r request_rec *r 
auth_checker


Detailed Description

Apache Request library.

Definition in file http_request.h.


Define Documentation

#define AP_SUBREQ_MERGE_ARGS   1
 

Definition at line 28 of file http_request.h.

Referenced by read_types_multi().

#define AP_SUBREQ_NO_ARGS   0
 

Definition at line 27 of file http_request.h.

Referenced by make_autoindex_entry().

#define MERGE_ALLOW   0
 

Definition at line 250 of file http_request.h.

Referenced by default_handler().

#define REPLACE_ALLOW   1
 

Definition at line 251 of file http_request.h.

Referenced by handle_map_file().


Function Documentation

AP_CORE_DECLARE_NONSTD apr_status_t   ) 
 

An output filter to strip EOS buckets from sub-requests. This always has to be inserted at the end of a sub-requests filter stack.

Parameters:
f The current filter
bb The brigade to filter apr_status_t ap_sub_req_output_filter(ap_filter_t *f, apr_bucket_brigade *bb)

Definition at line 2853 of file http_protocol.c.

References AP_CORE_DECLARE_NONSTD, ap_set_byterange(), ap_xlate_proto_to_ascii, APLOG_ERR, APLOG_MARK, APR_BLOCK_READ, APR_BRIGADE_INSERT_TAIL, APR_BRIGADE_LAST, APR_BRIGADE_PREPEND, apr_bucket_copy, APR_BUCKET_IS_EOS, APR_BUCKET_NEXT, apr_bucket_read, apr_pcalloc, APR_SUCCESS, byterange_ctx::bb, byterange_ctx::bound_head, byterange_ctx::boundary, conn_rec::bucket_alloc, BYTERANGE_FMT, c, request_rec::connection, CRLF, ctx, current, e, end, getpid, request_rec::headers_out, HTTP_OK, HTTP_RANGE_NOT_SATISFIABLE, NULL, byterange_ctx::num_ranges, parse_byterange(), PARTITION_ERR_FMT, request_rec::pool, request_rec::range, request_rec::status, str, and use_range_x().

Here is the call graph for this function:

AP_DECLARE void   ) 
 

Generic accessors for other modules to set at their own module-specific data

Parameters:
conf_vector The vector in which the modules configuration is stored. usually r->per_dir_config or s->module_config
m The module to set the data for.
val The module-specific data to set void ap_set_module_config(ap_conf_vector_t *cv, const module *m, void *val)

Definition at line 1271 of file http_protocol.c.

AP_DECLARE request_rec  )  const
 

Create a subrequest from the given URI. This subrequest can be inspected to find information about the requested URI

Parameters:
new_uri The URI to lookup
r The current request
next_filter The first filter the sub_request should use. If this is NULL, it defaults to the first filter for the main request
Returns:
The new request record request_rec * ap_sub_req_lookup_uri(const char *new_uri, const request_rec *r)

Definition at line 1616 of file request.c.

References AP_DECLARE.

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.


Variable Documentation

request_rec* r request_rec* r request_rec* r auth_checker
 

Definition at line 356 of file http_request.h.

apr_bucket_brigade* bb
 

Definition at line 136 of file http_request.h.

request_rec* r check_user_id
 

Definition at line 312 of file http_request.h.

apr_time_t dependency_mtime
 

Definition at line 211 of file http_request.h.

const char* new_uri
 

Definition at line 125 of file http_request.h.

const char const request_rec ap_filter_t * next_filter
 

Definition at line 125 of file http_request.h.

request_rec* r
 

Definition at line 185 of file http_request.h.

int int reset
 

Definition at line 248 of file http_request.h.

const request_rec int subtype
 

Definition at line 110 of file http_request.h.

translate_name
 

Definition at line 283 of file http_request.h.

request_rec* r request_rec* r type_checker
 

Definition at line 331 of file http_request.h.