summaryrefslogtreecommitdiff
path: root/lib/_http_incoming.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_http_incoming.js')
-rw-r--r--lib/_http_incoming.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/_http_incoming.js b/lib/_http_incoming.js
index b0d5c29b20..be724da310 100644
--- a/lib/_http_incoming.js
+++ b/lib/_http_incoming.js
@@ -28,14 +28,11 @@ function readStart(socket) {
if (socket && !socket._paused && socket.readable)
socket.resume();
}
-exports.readStart = readStart;
function readStop(socket) {
if (socket)
socket.pause();
}
-exports.readStop = readStop;
-
/* Abstract base class for ServerRequest and ClientResponse. */
function IncomingMessage(socket) {
@@ -83,9 +80,6 @@ function IncomingMessage(socket) {
util.inherits(IncomingMessage, Stream.Readable);
-exports.IncomingMessage = IncomingMessage;
-
-
IncomingMessage.prototype.setTimeout = function setTimeout(msecs, callback) {
if (callback)
this.on('timeout', callback);
@@ -324,3 +318,9 @@ IncomingMessage.prototype._dump = function _dump() {
this.resume();
}
};
+
+module.exports = {
+ IncomingMessage,
+ readStart,
+ readStop
+};