Browse Source

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>
v0.11.14-release
Ben Noordhuis 10 years ago
committed by Trevor Norris
parent
commit
299cf84490
  1. 1
      lib/http.js

1
lib/http.js

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

Loading…
Cancel
Save