Move http parser to extension model.

v0.7.4-release
Paul Querna 2010-07-13 23:51:08 -07:00 committed by Ryan Dahl
parent e51aef7f3c
commit e65c27062f
3 changed files with 2 additions and 4 deletions

View File

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

View File

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

View File

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