/httpd/server/ |
H A D | util_xml.c | 38 apr_xml_parser *parser; local 47 parser = apr_xml_parser_create(r->pool); 56 /* read the body, stuffing it into the parser */ 96 status = apr_xml_parser_feed(parser, data, len); 107 /* tell the parser that we're done */ 108 status = apr_xml_parser_done(parser, pdoc); 116 "XML parser error (at end). status=%d", status); 126 (void) apr_xml_parser_geterror(parser, errbuf, sizeof(errbuf)); 133 /* make sure the parser is terminated */ 134 (void) apr_xml_parser_done(parser, NUL [all...] |
H A D | apreq_module_custom.c | 33 apreq_parser_t *parser; member in struct:custom_handle 64 apreq_parser_run(req->parser, req->body, req->tmpbb); 83 apreq_parser_run(req->parser, req->body, req->tmpbb); 179 const apreq_parser_t **parser) 182 *parser = req->parser; 188 apreq_parser_t *parser) 191 (void)parser; 199 apreq_parser_add_hook(req->parser, hook); 207 *bytes = req->parser 178 custom_parser_get(apreq_handle_t *handle, const apreq_parser_t **parser) argument 187 custom_parser_set(apreq_handle_t *handle, apreq_parser_t *parser) argument 255 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) argument [all...] |
H A D | apreq_parser_urlencoded.c | 161 apr_pool_t *pool = parser->pool; 165 if (parser->ctx == NULL) { 167 ctx->bb = apr_brigade_create(pool, parser->bucket_alloc); 168 parser->ctx = ctx; 172 ctx = parser->ctx; 195 if (parser->hook != NULL && s == APR_SUCCESS) 196 s = apreq_hook_run(parser->hook, param, NULL); 247 if (parser->hook != NULL && s == APR_SUCCESS) 248 s = apreq_hook_run(parser->hook, param, NULL);
|
H A D | apreq_parser_multipart.c | 39 /* maximum recursion level in the mfd parser */ 264 apr_pool_t *pool = parser->pool; 265 apr_bucket_alloc_t *ba = parser->bucket_alloc; 266 struct mfd_ctx *ctx = parser->ctx; 270 ctx = create_multipart_context(parser->content_type, 272 parser->brigade_limit, 273 parser->temp_dir, 1); 278 parser->ctx = ctx; 337 /* flush out header parser internal structs for reuse */ 395 * block. If we do, create a new parser an [all...] |
H A D | apreq_module_cgi.c | 61 apreq_parser_t *parser; member in struct:cgi_handle 374 if (req->parser == NULL) { 381 req->parser = apreq_parser_make(pool, 401 if (req->parser->brigade_limit > req->brigade_limit) 402 req->parser->brigade_limit = req->brigade_limit; 404 req->parser->temp_dir = req->temp_dir; 406 apreq_parser_add_hook(req->parser, req->hook_queue); 455 apreq_parser_run(req->parser, req->body, req->tmpbb); 482 apreq_parser_run(req->parser, req->body, req->tmpbb); 761 h->next = req->parser 793 cgi_parser_get(apreq_handle_t *handle, const apreq_parser_t **parser) argument 802 cgi_parser_set(apreq_handle_t *handle, apreq_parser_t *parser) argument [all...] |
H A D | apreq_parser_header.c | 158 apr_pool_t *pool = parser->pool; 162 if (parser->ctx == NULL) { 164 ctx->bb = apr_brigade_create(pool, parser->bucket_alloc); 165 parser->ctx = ctx; 169 ctx = parser->ctx; 315 if (parser->hook != NULL && s == APR_SUCCESS) 316 s = apreq_hook_run(parser->hook, param, NULL);
|
H A D | apreq_parser.c | 45 p->parser = pfn; 69 /*XXX this may need to check the parser's state before modifying the hook list */ 206 /* generic parser */ 219 struct gen_ctx *ctx = parser->ctx; 220 apr_pool_t *pool = parser->pool; 226 parser->ctx = ctx = apr_palloc(pool, sizeof *ctx); 230 ctx->param->upload = apr_brigade_create(pool, parser->bucket_alloc); 245 if (parser->hook != NULL) { 246 s = apreq_hook_run(parser->hook, ctx->param, bb); 254 s = apreq_brigade_concat(pool, parser [all...] |
H A D | util_expr_parse.y | 25 %pure-parser
|
/httpd/include/ |
H A D | apreq_parser.h | 30 * @brief Request body parser API 35 * A hook is called by the parser whenever data arrives in a file 37 * of hooks with a parser instance with apreq_parser_add_hook(). 42 * A request body parser instance. 47 #define APREQ_PARSER_ARGS apreq_parser_t *parser, \ 57 * The callback function implementing a request body parser. 67 * Declares a API parser. 79 * A hook is called by the parser whenever data arrives in a file 81 * of hooks with a parser instance with apreq_parser_add_hook(). 91 * A request body parser instanc 95 apreq_parser_function_t parser; member in struct:apreq_parser_t [all...] |
H A D | apreq_module.h | 76 /** gets the parser associated with the request body */ 78 /** manually set a parser for the request body */ 88 /** determine the maximum amount of data that will be fed into a parser */ 90 /** set the maximum amount of data that will be fed into a parser */ 93 /** determine the directory used by the parser for temporary files */ 95 /** set the directory used by the parser for temporary files */ 214 * Fetch the active body parser. 217 * @param parser Points to the active parser on return. 224 const apreq_parser_t **parser) 223 apreq_parser_get(apreq_handle_t *req, const apreq_parser_t **parser) argument 239 apreq_parser_set(apreq_handle_t *req, apreq_parser_t *parser) argument [all...] |
/httpd/modules/apreq/ |
H A D | handle.c | 208 h->next = ctx->parser->hook; 210 ctx->parser->hook = h; 213 hook_ctx->prev = ctx->parser->hook; 221 ctx->parser->hook = h->next; 243 const apreq_parser_t **parser) 249 *parser = NULL; 252 *parser = ctx->parser; 258 apreq_parser_t *parser) 268 if (ctx->parser 242 apache2_parser_get(apreq_handle_t *handle, const apreq_parser_t **parser) argument 257 apache2_parser_set(apreq_handle_t *handle, apreq_parser_t *parser) argument [all...] |
H A D | filter.c | 103 "Maximum amount of data that will be fed into a parser."), 145 if (ctx->parser == NULL) { 152 ctx->parser = apreq_parser_make(r->pool, ba, ct_header, pf, 169 if (ctx->parser->brigade_limit > ctx->brigade_limit) 170 ctx->parser->brigade_limit = ctx->brigade_limit; 172 ctx->parser->temp_dir = ctx->temp_dir; 174 apreq_parser_add_hook(ctx->parser, ctx->hook_queue); 320 ctx->body_status = apreq_parser_run(ctx->parser, ctx->body, ctx->bb); 399 ctx->body_status = apreq_parser_run(ctx->parser, ctx->body, ctx->bb); 498 if (ctx->parser ! [all...] |
H A D | apreq_private_apache2.h | 20 apr_bucket_brigade *bb; /* input brigade that's passed to the parser */ 23 apreq_parser_t *parser; member in struct:filter_ctx 30 apr_uint64_t read_limit; /* Max bytes the filter may show to parser */
|
/httpd/modules/filters/ |
H A D | mod_proxy_html.c | 104 htmlParserCtxtPtr parser; member in struct:__anon169 151 htmlParseChunk(ctx->parser, inbuf, bytes, flag) 902 if (ctxt->parser != NULL) { 913 if (ctxt->parser != NULL) { 920 if (ctxt->parser == NULL) { 925 * And the HTML parser needs at least four bytes to initialise correctly. 958 ctxt->parser = htmlCreatePushParserCtxt(&sax, ctxt, buf, 962 if (ctxt->parser == NULL) { 967 apr_pool_cleanup_register(f->r->pool, ctxt->parser, 971 if (xmlopts = xmlCtxtUseOptions(ctxt->parser, xmlopt [all...] |
/httpd/server/mpm/netware/ |
H A D | mpm_netware.c | 1147 * initial pre-flight of the config parser. 1281 NX_WRAP_INTERFACE(CommandLineInterpreter, 2, (void*)&(ConsoleHandler.parser)); 1301 NX_UNWRAP_INTERFACE(ConsoleHandler.parser);
|