Skip to content

Commit

Permalink
deps: update llhttp to 2.1.2
Browse files Browse the repository at this point in the history
- update llhttp to 2.1.2
- modify test to support the latest llhttp

PR-URL: nodejs-private/node-private#215
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
indutny authored and richardlau committed Sep 14, 2020
1 parent 8d1d5f9 commit dd82837
Show file tree
Hide file tree
Showing 5 changed files with 7,124 additions and 276 deletions.
1 change: 0 additions & 1 deletion deps/llhttp/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# llhttp
[![Build Status](https://secure.travis-ci.org/nodejs/llhttp.svg)](http://travis-ci.org/nodejs/llhttp)

Port of [http_parser][0] to [llparse][1].

Expand Down
12 changes: 9 additions & 3 deletions deps/llhttp/include/llhttp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
#define INCLUDE_LLHTTP_H_

#define LLHTTP_VERSION_MAJOR 2
#define LLHTTP_VERSION_MINOR 0
#define LLHTTP_VERSION_PATCH 4
#define LLHTTP_VERSION_MINOR 1
#define LLHTTP_VERSION_PATCH 2

#ifndef LLHTTP_STRICT_MODE
# define LLHTTP_STRICT_MODE 0
#endif

#ifndef INCLUDE_LLHTTP_ITSELF_H_
#define INCLUDE_LLHTTP_ITSELF_H_
Expand Down Expand Up @@ -140,7 +144,8 @@ enum llhttp_method {
HTTP_MKCALENDAR = 30,
HTTP_LINK = 31,
HTTP_UNLINK = 32,
HTTP_SOURCE = 33
HTTP_SOURCE = 33,
HTTP_PRI = 34
};
typedef enum llhttp_method llhttp_method_t;

Expand Down Expand Up @@ -206,6 +211,7 @@ typedef enum llhttp_method llhttp_method_t;
XX(31, LINK, LINK) \
XX(32, UNLINK, UNLINK) \
XX(33, SOURCE, SOURCE) \
XX(34, PRI, PRI) \



Expand Down
Loading

0 comments on commit dd82837

Please sign in to comment.