mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-10 02:39:46 +00:00
Resync with upstream http-parser
This commit is contained in:
parent
5888860d2a
commit
0812caaea5
23
deps/http-parser/http_parser.h
vendored
23
deps/http-parser/http_parser.h
vendored
@ -201,29 +201,28 @@ enum http_errno {
|
|||||||
|
|
||||||
struct http_parser {
|
struct http_parser {
|
||||||
/** PRIVATE **/
|
/** PRIVATE **/
|
||||||
size_t nread;
|
unsigned char type : 2;
|
||||||
int64_t content_length;
|
unsigned char flags : 6; /* F_* values from 'flags' enum; semi-public */
|
||||||
|
|
||||||
unsigned char type;
|
|
||||||
unsigned char flags; /* F_* values from 'flags' enum; semi-public */
|
|
||||||
unsigned char state;
|
unsigned char state;
|
||||||
unsigned char header_state;
|
unsigned char header_state;
|
||||||
unsigned char index;
|
unsigned char index;
|
||||||
|
|
||||||
|
size_t nread;
|
||||||
|
int64_t content_length;
|
||||||
|
|
||||||
/** READ-ONLY **/
|
/** READ-ONLY **/
|
||||||
|
unsigned short http_major;
|
||||||
|
unsigned short http_minor;
|
||||||
|
unsigned short status_code; /* responses only */
|
||||||
|
unsigned char method; /* requests only */
|
||||||
|
unsigned char http_errno : 7;
|
||||||
|
|
||||||
/* 1 = Upgrade header was present and the parser has exited because of that.
|
/* 1 = Upgrade header was present and the parser has exited because of that.
|
||||||
* 0 = No upgrade header present.
|
* 0 = No upgrade header present.
|
||||||
* Should be checked when http_parser_execute() returns in addition to
|
* Should be checked when http_parser_execute() returns in addition to
|
||||||
* error checking.
|
* error checking.
|
||||||
*/
|
*/
|
||||||
unsigned char upgrade;
|
unsigned char upgrade : 1;
|
||||||
|
|
||||||
unsigned short http_major;
|
|
||||||
unsigned short http_minor;
|
|
||||||
unsigned short status_code; /* responses only */
|
|
||||||
unsigned char method; /* requests only */
|
|
||||||
unsigned char http_errno;
|
|
||||||
|
|
||||||
#if HTTP_PARSER_DEBUG
|
#if HTTP_PARSER_DEBUG
|
||||||
uint32_t error_lineno;
|
uint32_t error_lineno;
|
||||||
|
Loading…
Reference in New Issue
Block a user