From 299cf84490a2f28ffdc4c82e4fb7078ac591b6d3 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 23 Aug 2014 01:25:40 +0200 Subject: 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 --- lib/http.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/http.js b/lib/http.js index 9a59fd9a31..d12f12d60c 100644 --- a/lib/http.js +++ b/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; -- cgit v1.2.3