Skip to content

Commit 299cf84

Browse files
bnoordhuistrevnorris
authored andcommitted
lib: unexport http.parsers
Unexport the http.parsers freelist. It was originally exported by Ryan in commit 0003c70 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 <[email protected]>
1 parent 150d6f1 commit 299cf84

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/http.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ exports.IncomingMessage = require('_http_incoming').IncomingMessage;
2828

2929
var common = require('_http_common');
3030
exports.METHODS = util._extend([], common.methods).sort();
31-
exports.parsers = common.parsers;
3231

3332

3433
exports.OutgoingMessage = require('_http_outgoing').OutgoingMessage;

0 commit comments

Comments
 (0)