Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
0812caae
Commit
0812caae
authored
Sep 28, 2011
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resync with upstream http-parser
parent
5888860d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
deps/http-parser/http_parser.h
+11
-12
No files found.
deps/http-parser/http_parser.h
View file @
0812caae
...
...
@@ -201,29 +201,28 @@ enum http_errno {
struct
http_parser
{
/** PRIVATE **/
size_t
nread
;
int64_t
content_length
;
unsigned
char
type
;
unsigned
char
flags
;
/* F_* values from 'flags' enum; semi-public */
unsigned
char
type
:
2
;
unsigned
char
flags
:
6
;
/* F_* values from 'flags' enum; semi-public */
unsigned
char
state
;
unsigned
char
header_state
;
unsigned
char
index
;
size_t
nread
;
int64_t
content_length
;
/** 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.
* 0 = No upgrade header present.
* Should be checked when http_parser_execute() returns in addition to
* error checking.
*/
unsigned
char
upgrade
;
unsigned
short
http_major
;
unsigned
short
http_minor
;
unsigned
short
status_code
;
/* responses only */
unsigned
char
method
;
/* requests only */
unsigned
char
http_errno
;
unsigned
char
upgrade
:
1
;
#if HTTP_PARSER_DEBUG
uint32_t
error_lineno
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment