File tree 4 files changed +703
-290
lines changed
4 files changed +703
-290
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.5.1)
2
2
cmake_policy (SET CMP0069 NEW)
3
3
4
- project (llhttp VERSION 6.0.5 )
4
+ project (llhttp VERSION )
5
5
include (GNUInstallDirs)
6
6
7
7
set (CMAKE_C_STANDARD 99)
8
8
9
9
# By default build in relwithdebinfo type, supports both lowercase and uppercase
10
10
if (NOT CMAKE_CONFIGURATION_TYPES )
11
- set (allowableBuileTypes DEBUG RELEASE RELWITHDEBINFO MINSIZEREL)
12
- set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "${allowableBuileTypes } " )
11
+ set (allowableBuildTypes DEBUG RELEASE RELWITHDEBINFO MINSIZEREL)
12
+ set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "${allowableBuildTypes } " )
13
13
if (NOT CMAKE_BUILD_TYPE )
14
14
set (CMAKE_BUILD_TYPE RELWITHDEBINFO CACHE STRING "" FORCE)
15
15
else ()
16
16
string (TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE )
17
- if (NOT CMAKE_BUILD_TYPE IN_LIST allowableBuileTypes )
18
- message (FATEL_ERROR "Invalid build type: ${CMAKE_BUILD_TYPE} " )
17
+ if (NOT CMAKE_BUILD_TYPE IN_LIST allowableBuildTypes )
18
+ message (FATAL_ERROR "Invalid build type: ${CMAKE_BUILD_TYPE} " )
19
19
endif ()
20
20
endif ()
21
21
endif ()
Original file line number Diff line number Diff line change @@ -107,14 +107,15 @@ make
107
107
108
108
* Python: [ pallas/pyllhttp] [ 8 ]
109
109
* Ruby: [ metabahn/llhttp] [ 9 ]
110
+ * Rust: [ JackLiar/rust-llhttp] [ 10 ]
110
111
111
112
### Using with CMake
112
113
113
114
If you want to use this library in a CMake project you can use the snippet below.
114
115
115
116
```
116
117
FetchContent_Declare(llhttp
117
- URL "https://github.com/nodejs/llhttp/releases/download/v6.0.5/llhttp-release- v6.0.5.tar.gz") # Using version 6.0.5
118
+ URL "https://github.com/nodejs/llhttp/archive/refs/tags/ v6.0.5.tar.gz") # Using version 6.0.5
118
119
119
120
FetchContent_MakeAvailable(llhttp)
120
121
@@ -178,3 +179,4 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
178
179
[ 7 ] : https://github.com/nodejs/node
179
180
[ 8 ] : https://github.com/pallas/pyllhttp
180
181
[ 9 ] : https://github.com/metabahn/llhttp
182
+ [ 10 ] : https://github.com/JackLiar/rust-llhttp
Original file line number Diff line number Diff line change 3
3
4
4
#define LLHTTP_VERSION_MAJOR 6
5
5
#define LLHTTP_VERSION_MINOR 0
6
- #define LLHTTP_VERSION_PATCH 7
6
+ #define LLHTTP_VERSION_PATCH 9
7
7
8
8
#ifndef LLHTTP_STRICT_MODE
9
9
# define LLHTTP_STRICT_MODE 0
@@ -102,7 +102,8 @@ enum llhttp_lenient_flags {
102
102
LENIENT_HEADERS = 0x1 ,
103
103
LENIENT_CHUNKED_LENGTH = 0x2 ,
104
104
LENIENT_KEEP_ALIVE = 0x4 ,
105
- LENIENT_TRANSFER_ENCODING = 0x8
105
+ LENIENT_TRANSFER_ENCODING = 0x8 ,
106
+ LENIENT_VERSION = 0x10
106
107
};
107
108
typedef enum llhttp_lenient_flags llhttp_lenient_flags_t ;
108
109
You can’t perform that action at this time.
0 commit comments