1175415b88ff168e367c77df23901eada13225b9Stephan Bosch HTTP_MESSAGE_PARSE_ERROR_NONE = 0, /* no error */
1175415b88ff168e367c77df23901eada13225b9Stephan Bosch HTTP_MESSAGE_PARSE_ERROR_BROKEN_STREAM, /* stream error */
1175415b88ff168e367c77df23901eada13225b9Stephan Bosch HTTP_MESSAGE_PARSE_ERROR_BROKEN_MESSAGE, /* unrecoverable generic error */
1175415b88ff168e367c77df23901eada13225b9Stephan Bosch HTTP_MESSAGE_PARSE_ERROR_BAD_MESSAGE, /* recoverable generic error */
1175415b88ff168e367c77df23901eada13225b9Stephan Bosch HTTP_MESSAGE_PARSE_ERROR_NOT_IMPLEMENTED, /* used unimplemented feature
1175415b88ff168e367c77df23901eada13225b9Stephan Bosch (recoverable) */
1175415b88ff168e367c77df23901eada13225b9Stephan Bosch HTTP_MESSAGE_PARSE_ERROR_PAYLOAD_TOO_LARGE /* message payload is too large
7ebcb054e0d3cc4be54038cbf763ec4189d9725bStephan Bosch /* Strictly adhere to the HTTP protocol specification */
9e7bf91667639a2390207ab4d90bf88e2afcec2aStephan Bosch ARRAY_TYPE(http_transfer_coding) transfer_encoding;
b72c3363092b73cab1da2de4a9d75592e7d8fd6bTimo Sirainenvoid http_message_parser_init(struct http_message_parser *parser,
1175415b88ff168e367c77df23901eada13225b9Stephan Bosch struct istream *input, const struct http_header_limits *hdr_limits,
7ebcb054e0d3cc4be54038cbf763ec4189d9725bStephan Bosch uoff_t max_payload_size, enum http_message_parse_flags flags)
b72c3363092b73cab1da2de4a9d75592e7d8fd6bTimo Sirainenvoid http_message_parser_deinit(struct http_message_parser *parser);
6dad0888fcec8372f230941c70d8940b8c203b32Stephan Boschvoid http_message_parser_restart(struct http_message_parser *parser,
1ec26e0b70ac7f8a4e3dfbc59aa77f572651d5aeStephan Boschpool_t http_message_parser_get_pool(struct http_message_parser *parser);
208dcaf62332b80b220c8c66e776f7cc0c39253bStephan Boschint http_message_parse_finish_payload(struct http_message_parser *parser);
b72c3363092b73cab1da2de4a9d75592e7d8fd6bTimo Sirainenint http_message_parse_version(struct http_message_parser *parser);
208dcaf62332b80b220c8c66e776f7cc0c39253bStephan Boschint http_message_parse_headers(struct http_message_parser *parser);