mirror of https://github.com/nodejs/node.git
Move http parser to extension model.
parent
e51aef7f3c
commit
e65c27062f
|
@ -1597,10 +1597,6 @@ static Handle<Value> Binding(const Arguments& args) {
|
|||
StatWatcher::Initialize(exports);
|
||||
File::Initialize(exports);
|
||||
binding_cache->Set(module, exports);
|
||||
} else if (!strcmp(*module_v, "http_parser")) {
|
||||
exports = Object::New();
|
||||
InitHttpParser(exports);
|
||||
binding_cache->Set(module, exports);
|
||||
} else if (!strcmp(*module_v, "child_process")) {
|
||||
exports = Object::New();
|
||||
ChildProcess::Initialize(exports);
|
||||
|
|
|
@ -5,6 +5,7 @@ NODE_EXT_LIST_ITEM(node_cares)
|
|||
NODE_EXT_LIST_ITEM(node_crypto)
|
||||
#endif
|
||||
NODE_EXT_LIST_ITEM(node_net)
|
||||
NODE_EXT_LIST_ITEM(node_http_parser)
|
||||
NODE_EXT_LIST_ITEM(node_signal_watcher)
|
||||
NODE_EXT_LIST_ITEM(node_stdio)
|
||||
NODE_EXT_LIST_END
|
||||
|
|
|
@ -473,3 +473,4 @@ void InitHttpParser(Handle<Object> target) {
|
|||
|
||||
} // namespace node
|
||||
|
||||
NODE_MODULE(node_http_parser, node::InitHttpParser);
|
||||
|
|
Loading…
Reference in New Issue