php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Go to the source code of this file.
Macros | |
#define | MIN(a, b) |
#define | CALLBACK2(FOR) |
#define | MARK(FOR) |
#define | CALLBACK_NOCLEAR(FOR) |
#define | CALLBACK(FOR) |
#define | PROXY_CONNECTION "proxy-connection" |
#define | CONNECTION "connection" |
#define | CONTENT_LENGTH "content-length" |
#define | TRANSFER_ENCODING "transfer-encoding" |
#define | UPGRADE "upgrade" |
#define | CHUNKED "chunked" |
#define | KEEP_ALIVE "keep-alive" |
#define | CLOSE "close" |
#define | PARSING_HEADER(state) |
#define | CR '\r' |
#define | LF '\n' |
#define | LOWER(c) |
#define | TOKEN(c) |
#define | start_state (parser->type == PHP_HTTP_REQUEST ? s_start_req : s_start_res) |
#define | STRICT_CHECK(cond) |
#define | NEW_MESSAGE() |
Enumerations | |
enum | header_states { h_general = 0 , h_C , h_CO , h_CON , h_matching_connection , h_matching_proxy_connection , h_matching_content_length , h_matching_transfer_encoding , h_matching_upgrade , h_connection , h_content_length , h_transfer_encoding , h_upgrade , h_matching_transfer_encoding_chunked , h_matching_connection_keep_alive , h_matching_connection_close , h_transfer_encoding_chunked , h_connection_keep_alive , h_connection_close } |
enum | flags { F_CHUNKED = 1 << 0 , F_CONNECTION_KEEP_ALIVE = 1 << 1 , F_CONNECTION_CLOSE = 1 << 2 , F_TRAILING = 1 << 3 , F_UPGRADE = 1 << 4 , F_SKIPBODY = 1 << 5 } |
Functions | |
size_t | php_http_parser_execute (php_http_parser *parser, const php_http_parser_settings *settings, const char *data, size_t len) |
int | php_http_should_keep_alive (php_http_parser *parser) |
const char * | php_http_method_str (enum php_http_method m) |
void | php_http_parser_init (php_http_parser *parser, enum php_http_parser_type t) |
#define CALLBACK | ( | FOR | ) |
Definition at line 61 of file php_http_parser.c.
#define CALLBACK2 | ( | FOR | ) |
Definition at line 31 of file php_http_parser.c.
#define CALLBACK_NOCLEAR | ( | FOR | ) |
Definition at line 44 of file php_http_parser.c.
#define CHUNKED "chunked" |
Definition at line 73 of file php_http_parser.c.
#define CLOSE "close" |
Definition at line 75 of file php_http_parser.c.
#define CONNECTION "connection" |
Definition at line 69 of file php_http_parser.c.
#define CONTENT_LENGTH "content-length" |
Definition at line 70 of file php_http_parser.c.
#define CR '\r' |
Definition at line 238 of file php_http_parser.c.
#define KEEP_ALIVE "keep-alive" |
Definition at line 74 of file php_http_parser.c.
Definition at line 239 of file php_http_parser.c.
#define LOWER | ( | c | ) |
Definition at line 240 of file php_http_parser.c.
#define MARK | ( | FOR | ) |
Definition at line 39 of file php_http_parser.c.
Definition at line 27 of file php_http_parser.c.
#define NEW_MESSAGE | ( | ) |
Definition at line 252 of file php_http_parser.c.
Definition at line 198 of file php_http_parser.c.
#define PROXY_CONNECTION "proxy-connection" |
Definition at line 68 of file php_http_parser.c.
#define start_state (parser->type == PHP_HTTP_REQUEST ? s_start_req : s_start_res) |
Definition at line 244 of file php_http_parser.c.
#define STRICT_CHECK | ( | cond | ) |
Definition at line 251 of file php_http_parser.c.
#define TOKEN | ( | c | ) |
Definition at line 241 of file php_http_parser.c.
#define TRANSFER_ENCODING "transfer-encoding" |
Definition at line 71 of file php_http_parser.c.
#define UPGRADE "upgrade" |
Definition at line 72 of file php_http_parser.c.
Enumerator | |
---|---|
F_CHUNKED | |
F_CONNECTION_KEEP_ALIVE | |
F_CONNECTION_CLOSE | |
F_TRAILING | |
F_UPGRADE | |
F_SKIPBODY |
Definition at line 228 of file php_http_parser.c.
enum header_states |
Definition at line 201 of file php_http_parser.c.
const char * php_http_method_str | ( | enum php_http_method | m | ) |
Definition at line 1545 of file php_http_parser.c.
size_t php_http_parser_execute | ( | php_http_parser * | parser, |
const php_http_parser_settings * | settings, | ||
const char * | data, | ||
size_t | len ) |
Definition at line 256 of file php_http_parser.c.
void php_http_parser_init | ( | php_http_parser * | parser, |
enum php_http_parser_type | t ) |
Definition at line 1552 of file php_http_parser.c.
int php_http_should_keep_alive | ( | php_http_parser * | parser | ) |
Definition at line 1525 of file php_http_parser.c.