Apache HTTP Server Request Library
#include "apreq_params.h"
#include "apreq_cookie.h"
#include <stdarg.h>
Go to the source code of this file.
Data Structures | |
struct | apreq_env_t |
Vtable describing the necessary environment functions. More... | |
Defines | |
#define | APREQ_LOG_EMERG 0 |
#define | APREQ_LOG_ALERT 1 |
#define | APREQ_LOG_CRIT 2 |
#define | APREQ_LOG_ERR 3 |
#define | APREQ_LOG_WARNING 4 |
#define | APREQ_LOG_NOTICE 5 |
#define | APREQ_LOG_INFO 6 |
#define | APREQ_LOG_DEBUG 7 |
#define | APREQ_LOG_LEVELMASK 7 |
#define | APREQ_LOG_MARK __FILE__ , __LINE__ |
#define | APREQ_DEBUG APREQ_LOG_MARK, APREQ_LOG_DEBUG, |
#define | APREQ_WARN APREQ_LOG_MARK, APREQ_LOG_WARNING, |
#define | APREQ_ERROR APREQ_LOG_MARK, APREQ_LOG_ERR, |
#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 |
Vtable describing the necessary environment functions. | |
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: Convenience macro for defining an environment module by mapping a function prefix to an associated environment structure.
|
|
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.
|
|
Vtable describing the necessary environment functions. This must be fully defined for libapreq2 to operate properly in a given environment. Normally it is set once, with an apreq_env_module() call during process initialization, and should remain fixed thereafter. |
|
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().
|