18 #ifndef APREQ_MODULE_H
19 #define APREQ_MODULE_H
366 #define APREQ_MODULE(pre, mmn) const apreq_module_t \
367 pre##_module = { #pre, mmn, \
368 pre##_jar, pre##_args, pre##_body, \
369 pre##_jar_get, pre##_args_get, pre##_body_get, \
370 pre##_parser_get, pre##_parser_set, pre##_hook_add, \
371 pre##_brigade_limit_get, pre##_brigade_limit_set, \
372 pre##_read_limit_get, pre##_read_limit_set, \
373 pre##_temp_dir_get, pre##_temp_dir_set, \
405 const char *query_string,
408 apr_uint64_t read_limit,
431 #define apreq_cookie(req, name) apreq_jar_get(req, name)
#define APREQ_DECLARE(d)
Definition: apreq.h:50
#define APREQ_ERROR_NOPARSER
Definition: apreq_error.h:80
#define APREQ_ERROR_NOHEADER
Definition: apreq_error.h:78
#define APREQ_ERROR_NODATA
Definition: apreq_error.h:72
apreq_param_t * apreq_param(apreq_handle_t *req, const char *key)
static APR_INLINE unsigned apreq_module_status_is_error(apr_status_t s)
Definition: apreq_module.h:110
static APR_INLINE apr_status_t apreq_hook_add(apreq_handle_t *req, apreq_hook_t *hook)
Definition: apreq_module.h:254
apr_table_t * apreq_params(apreq_handle_t *req, apr_pool_t *p)
static APR_INLINE apr_status_t apreq_parser_get(apreq_handle_t *req, const apreq_parser_t **parser)
Definition: apreq_module.h:223
static APR_INLINE apr_status_t apreq_jar(apreq_handle_t *req, const apr_table_t **t)
Definition: apreq_module.h:135
apreq_handle_t * apreq_handle_cgi(apr_pool_t *pool)
static APR_INLINE apr_status_t apreq_temp_dir_get(apreq_handle_t *req, const char **path)
Definition: apreq_module.h:349
static APR_INLINE apreq_cookie_t * apreq_jar_get(apreq_handle_t *req, const char *name)
Definition: apreq_module.h:180
static APR_INLINE apr_status_t apreq_parser_set(apreq_handle_t *req, apreq_parser_t *parser)
Definition: apreq_module.h:239
apr_table_t * apreq_cookies(apreq_handle_t *req, apr_pool_t *p)
static APR_INLINE apreq_param_t * apreq_body_get(apreq_handle_t *req, const char *name)
Definition: apreq_module.h:208
static APR_INLINE apr_status_t apreq_read_limit_set(apreq_handle_t *req, apr_uint64_t bytes)
Definition: apreq_module.h:302
static APR_INLINE apr_status_t apreq_brigade_limit_set(apreq_handle_t *req, apr_size_t bytes)
Definition: apreq_module.h:270
struct apreq_module_t apreq_module_t
Vtable describing the necessary module functions.
static APR_INLINE apr_status_t apreq_read_limit_get(apreq_handle_t *req, apr_uint64_t *bytes)
Definition: apreq_module.h:318
apreq_handle_t * apreq_handle_custom(apr_pool_t *pool, const char *query_string, const char *cookie, apreq_parser_t *parser, apr_uint64_t read_limit, apr_bucket_brigade *in)
struct apreq_handle_t apreq_handle_t
static APR_INLINE apr_status_t apreq_brigade_limit_get(apreq_handle_t *req, apr_size_t *bytes)
Definition: apreq_module.h:286
static APR_INLINE apr_status_t apreq_args(apreq_handle_t *req, const apr_table_t **t)
Definition: apreq_module.h:150
static APR_INLINE apr_status_t apreq_body(apreq_handle_t *req, const apr_table_t **t)
Definition: apreq_module.h:165
static APR_INLINE apreq_param_t * apreq_args_get(apreq_handle_t *req, const char *name)
Definition: apreq_module.h:194
static APR_INLINE apr_status_t apreq_temp_dir_set(apreq_handle_t *req, const char *path)
Definition: apreq_module.h:333
struct apr_bucket_alloc_t apr_bucket_alloc_t
struct apr_pool_t apr_pool_t
struct apr_table_t apr_table_t
Cookie type, supporting both Netscape and RFC cookie specifications.
Definition: apreq_cookie.h:53
Definition: apreq_module.h:41
apr_pool_t * pool
Definition: apreq_module.h:45
apr_bucket_alloc_t * bucket_alloc
Definition: apreq_module.h:47
const struct apreq_module_t * module
Definition: apreq_module.h:43
Definition: apreq_parser.h:83
Vtable describing the necessary module functions.
Definition: apreq_module.h:56
apr_status_t(* jar)(apreq_handle_t *, const apr_table_t **)
Definition: apreq_module.h:63
apr_status_t(* args)(apreq_handle_t *, const apr_table_t **)
Definition: apreq_module.h:65
apr_status_t(* read_limit_get)(apreq_handle_t *, apr_uint64_t *)
Definition: apreq_module.h:89
apr_status_t(* parser_get)(apreq_handle_t *, const apreq_parser_t **)
Definition: apreq_module.h:77
apr_status_t(* temp_dir_get)(apreq_handle_t *, const char **)
Definition: apreq_module.h:94
apr_status_t(* brigade_limit_set)(apreq_handle_t *, apr_size_t)
Definition: apreq_module.h:86
apreq_param_t *(* body_get)(apreq_handle_t *, const char *)
Definition: apreq_module.h:74
apr_status_t(* read_limit_set)(apreq_handle_t *, apr_uint64_t)
Definition: apreq_module.h:91
apreq_param_t *(* args_get)(apreq_handle_t *, const char *)
Definition: apreq_module.h:72
apr_status_t(* brigade_limit_get)(apreq_handle_t *, apr_size_t *)
Definition: apreq_module.h:84
apr_status_t(* temp_dir_set)(apreq_handle_t *, const char *)
Definition: apreq_module.h:96
apr_status_t(* body)(apreq_handle_t *, const apr_table_t **)
Definition: apreq_module.h:67
apr_status_t(* hook_add)(apreq_handle_t *, apreq_hook_t *)
Definition: apreq_module.h:81
apr_uint32_t magic_number
Definition: apreq_module.h:60
apr_status_t(* parser_set)(apreq_handle_t *, apreq_parser_t *)
Definition: apreq_module.h:79
apreq_cookie_t *(* jar_get)(apreq_handle_t *, const char *)
Definition: apreq_module.h:70
const char * name
Definition: apreq_module.h:58
Definition: apreq_param.h:37
Definition: apreq_parser.h:93