Lines Matching refs:parser

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 instance.
95 apreq_parser_function_t parser;
108 /** internal context pointer used by the parser function */
119 * passed back to the parser again).
120 * @remark bb == NULL is valid: the parser should return its
127 return psr->parser(psr, t, bb);
146 * RFC 822 Header parser. It will reject all data
153 * RFC 2396 application/x-www-form-urlencoded parser.
159 * parser. It will reject any buckets representing preamble and
166 * Generic parser. No table entries will be added to
167 * the req->body table by this parser. The parser creates
171 * by casting the parser's ctx pointer to (apreq_param_t **).
185 * Construct a parser.
187 * @param pool Pool used to allocate the parser.
189 * @param content_type Content-type that this parser can deal with.
190 * @param pfn The parser function.
192 * @param temp_dir the directory used by the parser for temporary files
193 * @param hook Hooks to associate this parser with.
195 * @return New parser.
222 * Add a new hook to the end of the parser's hook list.
232 * Fetch the default parser function associated with the given MIME type.
235 * @return The parser function, or NULL if the enctype is unrecognized.
247 * parser == NULL will remove an existing parser.
257 * Returns APREQ_ERROR_GENERAL. Effectively disables mfd parser
290 * invoked, so add it manually with ctx->prev = &parser->hook