From aa943d098e0299ea87485a607353d152f5ea5012 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 30 Nov 2018 07:39:02 +0100 Subject: http: make parser choice a runtime flag Add a `--http-parser=llhttp` vs `--http-parser=traditional` command line switch, to make testing and comparing the new llhttp-based implementation easier. PR-URL: https://github.com/nodejs/node/pull/24739 Refs: https://github.com/nodejs/node/issues/24730 Reviewed-By: Joyee Cheung Reviewed-By: Colin Ihrig Reviewed-By: Fedor Indutny Reviewed-By: Gus Caplan Reviewed-By: Matheus Marchini Reviewed-By: Matteo Collina Reviewed-By: Ali Ijaz Sheikh --- node.gyp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'node.gyp') diff --git a/node.gyp b/node.gyp index 1348ec861d..7e8867e971 100644 --- a/node.gyp +++ b/node.gyp @@ -355,7 +355,8 @@ 'src/node_encoding.cc', 'src/node_errors.cc', 'src/node_file.cc', - 'src/node_http_parser.cc', + 'src/node_http_parser_llhttp.cc', + 'src/node_http_parser_traditional.cc', 'src/node_http2.cc', 'src/node_i18n.cc', 'src/node_messaging.cc', @@ -426,6 +427,7 @@ 'src/node_contextify.h', 'src/node_errors.h', 'src/node_file.h', + 'src/node_http_parser_impl.h', 'src/node_http2.h', 'src/node_http2_state.h', 'src/node_i18n.h', -- cgit v1.2.3