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
a67822b3
Commit
a67822b3
authored
Feb 10, 2022
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump llhttp to v6.0.6
parent
79da3fde
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
599 additions
and
407 deletions
+599
-407
third-party/llhttp/README.md
third-party/llhttp/README.md
+15
-1
third-party/llhttp/include/llhttp.h
third-party/llhttp/include/llhttp.h
+1
-1
third-party/llhttp/src/api.c
third-party/llhttp/src/api.c
+8
-2
third-party/llhttp/src/llhttp.c
third-party/llhttp/src/llhttp.c
+575
-403
No files found.
third-party/llhttp/README.md
View file @
a67822b3
...
...
@@ -90,7 +90,7 @@ if (err == HPE_OK) {
parser.reason);
}
```
For more information on API usage, please refer to
[
src/native/api.h
](
https://github.com/nodejs/llhttp/blob/ma
ster
/src/native/api.h
)
.
For more information on API usage, please refer to
[
src/native/api.h
](
https://github.com/nodejs/llhttp/blob/ma
in
/src/native/api.h
)
.
---
...
...
@@ -99,6 +99,20 @@ For more information on API usage, please refer to [src/native/api.h](https://gi
*
Python:
[
pallas/pyllhttp
][
8
]
*
Ruby:
[
metabahn/llhttp
][
9
]
### Using with CMake
If you want to use this library in a CMake project you can use the snippet below.
```
FetchContent_Declare(llhttp
URL "https://github.com/nodejs/llhttp/releases/download/v6.0.5/llhttp-release-v6.0.5.tar.gz") # Using version 6.0.5
FetchContent_MakeAvailable(llhttp)
target_link_libraries(${EXAMPLE_PROJECT_NAME} ${PROJECT_LIBRARIES} llhttp ${PROJECT_NAME})
```
#### LICENSE
This software is licensed under the MIT License.
...
...
third-party/llhttp/include/llhttp.h
View file @
a67822b3
...
...
@@ -3,7 +3,7 @@
#define LLHTTP_VERSION_MAJOR 6
#define LLHTTP_VERSION_MINOR 0
#define LLHTTP_VERSION_PATCH
2
#define LLHTTP_VERSION_PATCH
6
#ifndef LLHTTP_STRICT_MODE
# define LLHTTP_STRICT_MODE 0
...
...
third-party/llhttp/src/api.c
View file @
a67822b3
...
...
@@ -46,17 +46,23 @@ extern int wasm_on_url(llhttp_t* p, const char* at, size_t length);
extern
int
wasm_on_status
(
llhttp_t
*
p
,
const
char
*
at
,
size_t
length
);
extern
int
wasm_on_header_field
(
llhttp_t
*
p
,
const
char
*
at
,
size_t
length
);
extern
int
wasm_on_header_value
(
llhttp_t
*
p
,
const
char
*
at
,
size_t
length
);
extern
int
wasm_on_headers_complete
(
llhttp_t
*
p
);
extern
int
wasm_on_headers_complete
(
llhttp_t
*
p
,
int
status_code
,
uint8_t
upgrade
,
int
should_keep_alive
);
extern
int
wasm_on_body
(
llhttp_t
*
p
,
const
char
*
at
,
size_t
length
);
extern
int
wasm_on_message_complete
(
llhttp_t
*
p
);
static
int
wasm_on_headers_complete_wrap
(
llhttp_t
*
p
)
{
return
wasm_on_headers_complete
(
p
,
p
->
status_code
,
p
->
upgrade
,
llhttp_should_keep_alive
(
p
));
}
const
llhttp_settings_t
wasm_settings
=
{
wasm_on_message_begin
,
wasm_on_url
,
wasm_on_status
,
wasm_on_header_field
,
wasm_on_header_value
,
wasm_on_headers_complete
,
wasm_on_headers_complete
_wrap
,
wasm_on_body
,
wasm_on_message_complete
,
NULL
,
...
...
third-party/llhttp/src/llhttp.c
View file @
a67822b3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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