Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
444fd818
Commit
444fd818
authored
Nov 15, 2020
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump llhttp to 2.2.0
parent
f6b875e0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3898 additions
and
2577 deletions
+3898
-2577
third-party/llhttp/include/llhttp.h
third-party/llhttp/include/llhttp.h
+31
-4
third-party/llhttp/src/llhttp.c
third-party/llhttp/src/llhttp.c
+3867
-2573
No files found.
third-party/llhttp/include/llhttp.h
View file @
444fd818
...
...
@@ -2,8 +2,8 @@
#define INCLUDE_LLHTTP_H_
#define LLHTTP_VERSION_MAJOR 2
#define LLHTTP_VERSION_MINOR
1
#define LLHTTP_VERSION_PATCH
3
#define LLHTTP_VERSION_MINOR
2
#define LLHTTP_VERSION_PATCH
0
#ifndef LLHTTP_STRICT_MODE
# define LLHTTP_STRICT_MODE 0
...
...
@@ -145,7 +145,18 @@ enum llhttp_method {
HTTP_LINK
=
31
,
HTTP_UNLINK
=
32
,
HTTP_SOURCE
=
33
,
HTTP_PRI
=
34
HTTP_PRI
=
34
,
HTTP_DESCRIBE
=
35
,
HTTP_ANNOUNCE
=
36
,
HTTP_SETUP
=
37
,
HTTP_PLAY
=
38
,
HTTP_PAUSE
=
39
,
HTTP_TEARDOWN
=
40
,
HTTP_GET_PARAMETER
=
41
,
HTTP_SET_PARAMETER
=
42
,
HTTP_REDIRECT
=
43
,
HTTP_RECORD
=
44
,
HTTP_FLUSH
=
45
};
typedef
enum
llhttp_method
llhttp_method_t
;
...
...
@@ -212,6 +223,17 @@ typedef enum llhttp_method llhttp_method_t;
XX(32, UNLINK, UNLINK) \
XX(33, SOURCE, SOURCE) \
XX(34, PRI, PRI) \
XX(35, DESCRIBE, DESCRIBE) \
XX(36, ANNOUNCE, ANNOUNCE) \
XX(37, SETUP, SETUP) \
XX(38, PLAY, PLAY) \
XX(39, PAUSE, PAUSE) \
XX(40, TEARDOWN, TEARDOWN) \
XX(41, GET_PARAMETER, GET_PARAMETER) \
XX(42, SET_PARAMETER, SET_PARAMETER) \
XX(43, REDIRECT, REDIRECT) \
XX(44, RECORD, RECORD) \
XX(45, FLUSH, FLUSH) \
...
...
@@ -266,7 +288,12 @@ struct llhttp_settings_s {
llhttp_cb
on_chunk_complete
;
};
/* Initialize the parser with specific type and user settings */
/* Initialize the parser with specific type and user settings.
*
* NOTE: lifetime of `settings` has to be at least the same as the lifetime of
* the `parser` here. In practice, `settings` has to be either a static
* variable or be allocated with `malloc`, `new`, etc.
*/
void
llhttp_init
(
llhttp_t
*
parser
,
llhttp_type_t
type
,
const
llhttp_settings_t
*
settings
);
...
...
third-party/llhttp/src/llhttp.c
View file @
444fd818
This diff is collapsed.
Click to expand it.
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