Browse Source

Move http parser to extension model.

v0.7.4-release
Paul Querna 15 years ago
committed by Ryan Dahl
parent
commit
e65c27062f
  1. 4
      src/node.cc
  2. 1
      src/node_extensions.h
  3. 1
      src/node_http_parser.cc

4
src/node.cc

@ -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);

1
src/node_extensions.h

@ -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

1
src/node_http_parser.cc

@ -473,3 +473,4 @@ void InitHttpParser(Handle<Object> target) {
} // namespace node
NODE_MODULE(node_http_parser, node::InitHttpParser);

Loading…
Cancel
Save