Lines Matching defs:parser
325 http_parser parser;
678 static int ph_on_message_begin(http_parser *parser)
685 static int ph_on_status(http_parser *parser, const char *at, size_t length)
688 talloc_get_type(parser->data, struct proxy_http_reply);
703 static int ph_on_header_field(http_parser *parser,
707 talloc_get_type(parser->data, struct proxy_http_reply);
742 static int ph_on_header_value(http_parser *parser,
746 talloc_get_type(parser->data, struct proxy_http_reply);
772 static int ph_on_headers_complete(http_parser *parser)
778 static int ph_on_body(http_parser *parser, const char *at, size_t length)
781 talloc_get_type(parser->data, struct proxy_http_reply);
797 static int ph_on_message_complete(http_parser *parser)
800 talloc_get_type(parser->data, struct proxy_http_reply);
802 reply->status_code = parser->status_code;
841 http_parser_init(&state->reply->parser, HTTP_RESPONSE);
842 state->reply->parser.data = state->reply;
850 * then 0 length will indicate EOF to the parser, otherwise we
869 ret = http_parser_execute(&state->reply->parser, &ph_callbacks,