File tree 5 files changed +10
-9
lines changed
5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
#define NODE_EXPERIMENTAL_HTTP 1
2
2
3
3
#include " node_http_parser_impl.h"
4
+ #include " node_metadata.h"
4
5
5
6
namespace node {
6
7
8
+ namespace per_process {
7
9
const char * const llhttp_version =
8
10
NODE_STRINGIFY (LLHTTP_VERSION_MAJOR)
9
11
" ."
10
12
NODE_STRINGIFY (LLHTTP_VERSION_MINOR)
11
13
" ."
12
14
NODE_STRINGIFY (LLHTTP_VERSION_PATCH);
13
-
15
+ } // namespace per_process
14
16
} // namespace node
15
17
16
18
NODE_MODULE_CONTEXT_AWARE_INTERNAL (http_parser_llhttp,
Original file line number Diff line number Diff line change 3
3
#endif
4
4
5
5
#include " node_http_parser_impl.h"
6
+ #include " node_metadata.h"
6
7
7
8
namespace node {
8
-
9
+ namespace per_process {
9
10
const char * const http_parser_version =
10
11
NODE_STRINGIFY (HTTP_PARSER_VERSION_MAJOR)
11
12
" ."
12
13
NODE_STRINGIFY (HTTP_PARSER_VERSION_MINOR)
13
14
" ."
14
15
NODE_STRINGIFY (HTTP_PARSER_VERSION_PATCH);
15
-
16
+ } // namespace per_process
16
17
} // namespace node
17
18
18
19
NODE_MODULE_CONTEXT_AWARE_INTERNAL (http_parser, node::InitializeHttpParser)
Original file line number Diff line number Diff line change @@ -698,9 +698,6 @@ static inline const char* errno_string(int errorno) {
698
698
699
699
extern double prog_start_time;
700
700
701
- extern const char * const llhttp_version;
702
- extern const char * const http_parser_version;
703
-
704
701
void Abort (const v8::FunctionCallbackInfo<v8::Value>& args);
705
702
void Chdir (const v8::FunctionCallbackInfo<v8::Value>& args);
706
703
void CPUUsage (const v8::FunctionCallbackInfo<v8::Value>& args);
Original file line number Diff line number Diff line change 2
2
#include " ares.h"
3
3
#include " nghttp2/nghttp2ver.h"
4
4
#include " node.h"
5
- #include " node_internals.h"
6
5
#include " util.h"
7
6
#include " uv.h"
8
7
#include " v8.h"
@@ -44,8 +43,8 @@ Metadata::Versions::Versions() {
44
43
modules = NODE_STRINGIFY (NODE_MODULE_VERSION);
45
44
nghttp2 = NGHTTP2_VERSION;
46
45
napi = NODE_STRINGIFY (NAPI_VERSION);
47
- llhttp = llhttp_version;
48
- http_parser = http_parser_version;
46
+ llhttp = per_process:: llhttp_version;
47
+ http_parser = per_process:: http_parser_version;
49
48
50
49
#if HAVE_OPENSSL
51
50
openssl = GetOpenSSLVersion ();
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ class Metadata {
44
44
// Per-process global
45
45
namespace per_process {
46
46
extern Metadata metadata;
47
+ extern const char * const llhttp_version;
48
+ extern const char * const http_parser_version;
47
49
}
48
50
49
51
} // namespace node
You can’t perform that action at this time.
0 commit comments