summaryrefslogtreecommitdiff
path: root/src/node_http_parser_llhttp.cc
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-12-19 03:15:36 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-12-21 07:46:30 +0800
commita29c93a1472947ed053b674cfd670a9d191594ea (patch)
tree20ae016d819e3d6ed36cebd8f70f4c85c1662d47 /src/node_http_parser_llhttp.cc
parente9703619e0698953ed71e8faf446b61c11ec89fc (diff)
downloadnode-new-a29c93a1472947ed053b674cfd670a9d191594ea.tar.gz
src: move the declaration of http parser versions into node_metadata.h
Instead of putting them in node_internals.h. PR-URL: https://github.com/nodejs/node/pull/25115 Reviewed-By: Steven R Loomis <srloomis@us.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_http_parser_llhttp.cc')
-rw-r--r--src/node_http_parser_llhttp.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node_http_parser_llhttp.cc b/src/node_http_parser_llhttp.cc
index 8728fa2b67..423fb5e104 100644
--- a/src/node_http_parser_llhttp.cc
+++ b/src/node_http_parser_llhttp.cc
@@ -1,16 +1,18 @@
#define NODE_EXPERIMENTAL_HTTP 1
#include "node_http_parser_impl.h"
+#include "node_metadata.h"
namespace node {
+namespace per_process {
const char* const llhttp_version =
NODE_STRINGIFY(LLHTTP_VERSION_MAJOR)
"."
NODE_STRINGIFY(LLHTTP_VERSION_MINOR)
"."
NODE_STRINGIFY(LLHTTP_VERSION_PATCH);
-
+} // namespace per_process
} // namespace node
NODE_MODULE_CONTEXT_AWARE_INTERNAL(http_parser_llhttp,