File tree Expand file tree Collapse file tree 4 files changed +703
-290
lines changed
Expand file tree Collapse file tree 4 files changed +703
-290
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.5.1)
22cmake_policy (SET CMP0069 NEW)
33
4- project (llhttp VERSION 6.0.5 )
4+ project (llhttp VERSION )
55include (GNUInstallDirs)
66
77set (CMAKE_C_STANDARD 99)
88
99# By default build in relwithdebinfo type, supports both lowercase and uppercase
1010if (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 } " )
1313 if (NOT CMAKE_BUILD_TYPE )
1414 set (CMAKE_BUILD_TYPE RELWITHDEBINFO CACHE STRING "" FORCE)
1515 else ()
1616 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} " )
1919 endif ()
2020 endif ()
2121endif ()
Original file line number Diff line number Diff line change @@ -107,14 +107,15 @@ make
107107
108108* Python: [ pallas/pyllhttp] [ 8 ]
109109* Ruby: [ metabahn/llhttp] [ 9 ]
110+ * Rust: [ JackLiar/rust-llhttp] [ 10 ]
110111
111112### Using with CMake
112113
113114If you want to use this library in a CMake project you can use the snippet below.
114115
115116```
116117FetchContent_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
118119
119120FetchContent_MakeAvailable(llhttp)
120121
@@ -178,3 +179,4 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
178179[ 7 ] : https://github.com/nodejs/node
179180[ 8 ] : https://github.com/pallas/pyllhttp
180181[ 9 ] : https://github.com/metabahn/llhttp
182+ [ 10 ] : https://github.com/JackLiar/rust-llhttp
Original file line number Diff line number Diff line change 33
44#define LLHTTP_VERSION_MAJOR 6
55#define LLHTTP_VERSION_MINOR 0
6- #define LLHTTP_VERSION_PATCH 7
6+ #define LLHTTP_VERSION_PATCH 9
77
88#ifndef LLHTTP_STRICT_MODE
99# define LLHTTP_STRICT_MODE 0
@@ -102,7 +102,8 @@ enum llhttp_lenient_flags {
102102 LENIENT_HEADERS = 0x1 ,
103103 LENIENT_CHUNKED_LENGTH = 0x2 ,
104104 LENIENT_KEEP_ALIVE = 0x4 ,
105- LENIENT_TRANSFER_ENCODING = 0x8
105+ LENIENT_TRANSFER_ENCODING = 0x8 ,
106+ LENIENT_VERSION = 0x10
106107};
107108typedef enum llhttp_lenient_flags llhttp_lenient_flags_t ;
108109
You can’t perform that action at this time.
0 commit comments