Data Structures | |
struct | apreq_env_t |
Defines | |
#define | apreq_env_content_type(env) apreq_env_header_in(env, "Content-Type") |
#define | apreq_env_cookie(env) apreq_env_header_in(env, "Cookie") |
#define | apreq_env_cookie2(env) apreq_env_header_in(env, "Cookie2") |
#define | apreq_env_set_cookie(e, s) apreq_env_header_out(e,"Set-Cookie",s) |
#define | apreq_env_set_cookie2(e, s) apreq_env_header_out(e,"Set-Cookie2",s) |
#define | APREQ_ENV_MODULE(pre, name, mmn) |
#define | apreq_env_name (apreq_env_module(NULL)->name) |
#define | apreq_env_magic_number (apreq_env_module(NULL)->magic_number) |
Typedefs | |
typedef apreq_env_t | apreq_env_t |
Functions | |
void | apreq_log (const char *file, int line, int level, apr_status_t status, void *env, const char *fmt,...) |
apr_pool_t * | apreq_env_pool (void *env) |
apreq_jar_t * | apreq_env_jar (void *env, apreq_jar_t *jar) |
apreq_request_t * | apreq_env_request (void *env, apreq_request_t *req) |
const char * | apreq_env_query_string (void *env) |
const char * | apreq_env_header_in (void *env, const char *name) |
apr_status_t | apreq_env_header_out (void *env, const char *name, char *val) |
apr_status_t | apreq_env_read (void *env, apr_read_type_e block, apr_off_t bytes) |
const char * | apreq_env_temp_dir (void *env, const char *path) |
apr_off_t | apreq_env_max_body (void *env, apr_off_t bytes) |
apr_ssize_t | apreq_env_max_brigade (void *env, apr_ssize_t bytes) |
const apreq_env_t * | apreq_env_module (const apreq_env_t *mod) |
|
Fetch the environment's "Content-Type" header.
|
|
Fetch the environment's "Cookie" header.
|
|
Fetch the environment's "Cookie2" header.
|
|
The current environment's magic (ie. version) number. |
|
Value: const apreq_env_t pre##_module = { \ name, mmn, pre##_log, pre##_pool, pre##_jar, pre##_request, \ pre##_query_string, pre##_header_in, pre##_header_out, pre##_read, \ pre##_temp_dir, pre##_max_body, pre##_max_brigade }
|
|
The current environment's name. |
|
Add a "Set-Cookie" header to the outgoing response headers.
|
|
Add a "Set-Cookie2" header to the outgoing response headers.
|
|
The environment structure, which must be fully defined for libapreq2 to operate properly in a given environment. |
|
Fetch the header value (joined by ", " if there are multiple headers) for a given header name.
|
|
Add a header field to the environment's outgoing response headers
|
|
Get/set the jar currently associated to the environment.
|
|
Get/set the current max_body setting. This is the maximum amount of bytes that will be read into the environment's parser.
|
|
Get/set the current max_brigade setting. This is the maximum amount of heap-allocated buckets libapreq2 will use for its brigades. If additional buckets are necessary, they will be created from a temporary file.
|
|
Get/set function for the active environment stucture. Usually this is called only once per process, to define the correct environment.
|
|
Pool associated with the environment.
|
|
Fetch the query string.
|
|
Read data from the environment and into the current active parser.
|
|
Get/set the request currently associated to the environment.
|
|
Get/set the current temporary directory.
|
|
Analog of Apache's ap_log_rerror().
|