22#ifndef php_http_parser_h
23#define php_http_parser_h
30#if defined(_WIN32) && !defined(__MINGW32__)
32# include "config.w32.h"
34# include <php_config.h>
42#ifndef PHP_HTTP_PARSER_STRICT
43# define PHP_HTTP_PARSER_STRICT 1
45# define PHP_HTTP_PARSER_STRICT 0
50#define PHP_HTTP_MAX_HEADER_SIZE (80*1024)
int(* php_http_data_cb)(php_http_parser *, const char *at, size_t length)
int(* php_http_cb)(php_http_parser *)
@ PHP_HTTP_NOT_IMPLEMENTED
int php_http_should_keep_alive(php_http_parser *parser)
void php_http_parser_init(php_http_parser *parser, enum php_http_parser_type type)
@ s_chunk_size_almost_done
@ s_res_first_status_code
@ s_req_query_string_start
@ s_req_spaces_before_url
@ s_req_schema_slash_slash
@ s_chunk_data_almost_done
size_t php_http_parser_execute(php_http_parser *parser, const php_http_parser_settings *settings, const char *data, size_t len)
const char * php_http_method_str(enum php_http_method)
php_http_cb on_message_complete
php_http_cb on_headers_complete
php_http_data_cb on_query_string
php_http_data_cb on_header_value
php_http_cb on_message_begin
php_http_data_cb on_header_field
php_http_data_cb on_fragment
unsigned char header_state
unsigned short http_minor
unsigned short status_code
unsigned short http_major