Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

Parsers and Hooks
[libapreq2]


Data Structures

struct  apreq_cfg_t
struct  apreq_hook_t
struct  apreq_parser_t

Defines

#define APREQ_DECLARE_PARSER(f)
#define APREQ_DECLARE_HOOK(f)
#define apreq_run_parser(psr, cfg, t, bb)   (psr)->parser(psr,cfg,t,bb)
#define apreq_run_hook(h, pool, cfg, bb)   (h)->hook(h,pool,cfg,bb)

Typedefs

typedef apreq_cfg_t apreq_cfg_t
typedef apreq_hook_t apreq_hook_t
typedef apreq_parser_t apreq_parser_t

Functions

apr_status_t apreq_brigade_concat (apr_pool_t *pool, const apreq_cfg_t *cfg, apr_bucket_brigade *out, apr_bucket_brigade *in)
 APREQ_DECLARE_PARSER (apreq_parse_headers)
 APREQ_DECLARE_PARSER (apreq_parse_urlencoded)
 APREQ_DECLARE_PARSER (apreq_parse_multipart)
apreq_parser_t * apreq_make_parser (apr_pool_t *pool, const char *type, APREQ_DECLARE_PARSER(*parser), apreq_hook_t *hook, void *ctx)
apreq_hook_t * apreq_make_hook (apr_pool_t *pool, APREQ_DECLARE_HOOK(*hook), apreq_hook_t *next, void *ctx)
apr_status_t apreq_add_hook (apreq_parser_t *p, apreq_hook_t *h)
apreq_parser_t * apreq_parser (void *env, apreq_hook_t *hook)

Define Documentation

#define APREQ_DECLARE_HOOK  ) 
 

Value:

apr_status_t (f)(apreq_hook_t *hook,   \
                                       apr_pool_t *pool,             \
                                       const apreq_cfg_t *cfg,       \
                                       apr_bucket_brigade *bb)

#define APREQ_DECLARE_PARSER  ) 
 

Value:

apr_status_t (f)(apreq_parser_t *parser, \
                                         const apreq_cfg_t *cfg,         \
                                         apr_table_t *t,                 \
                                         apr_bucket_brigade *bb)


Typedef Documentation

typedef struct apreq_cfg_t apreq_cfg_t
 

Request config


Generated on Sat Nov 15 23:04:50 2003 for libapreq2 by doxygen1.3