mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
lib: unexport http.parsers
Unexport the http.parsers freelist. It was originally exported by Ryan
in commit 0003c701 but the commit log doesn't mention why and it's never
been documented. It's unclear if there are any users.
The lifecycle of parser objects changed recently and it seems better to
not let people shoot themselves in the foot so easily.
If it turns out there are actually users, we can always re-export it
again - probably under a slightly different name, to force people to
update their code to the new way of things.
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
This commit is contained in:
committed by
Trevor Norris
parent
150d6f1249
commit
299cf84490
@@ -28,7 +28,6 @@ exports.IncomingMessage = require('_http_incoming').IncomingMessage;
|
||||
|
||||
var common = require('_http_common');
|
||||
exports.METHODS = util._extend([], common.methods).sort();
|
||||
exports.parsers = common.parsers;
|
||||
|
||||
|
||||
exports.OutgoingMessage = require('_http_outgoing').OutgoingMessage;
|
||||
|
||||
Reference in New Issue
Block a user