deps: introduce llhttp

llhttp is modern, written in human-readable TypeScript, verifiable, and
is very easy to maintain.

See: https://github.com/indutny/llhttp

PR-URL: https://github.com/nodejs/node/pull/24059
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Fedor Indutny 2018-10-29 22:06:09 -04:00
parent d3f02d0da3
commit d4654d89be
22 changed files with 7253 additions and 77 deletions

View file

@ -25,7 +25,7 @@ function flushPool() {
function demoBug(part1, part2) {
flushPool();
const parser = new HTTPParser(0);
const parser = new HTTPParser(HTTPParser.REQUEST);
parser.headers = [];
parser.url = '';