diff options
Diffstat (limited to 'lib/_http_server.js')
-rw-r--r-- | lib/_http_server.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/_http_server.js b/lib/_http_server.js index 0a300ade61..2821db8f40 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -36,7 +36,7 @@ const httpSocketSetup = common.httpSocketSetup; const OutgoingMessage = require('_http_outgoing').OutgoingMessage; const outHeadersKey = require('internal/http').outHeadersKey; -const STATUS_CODES = exports.STATUS_CODES = { +const STATUS_CODES = { 100: 'Continue', 101: 'Switching Protocols', 102: 'Processing', // RFC 2518, obsoleted by RFC 4918 @@ -128,8 +128,6 @@ ServerResponse.prototype._finish = function _finish() { }; -exports.ServerResponse = ServerResponse; - ServerResponse.prototype.statusCode = 200; ServerResponse.prototype.statusMessage = undefined; @@ -290,9 +288,6 @@ Server.prototype.setTimeout = function setTimeout(msecs, callback) { }; -exports.Server = Server; - - function connectionListener(socket) { debug('SERVER new http connection'); @@ -363,7 +358,7 @@ function connectionListener(socket) { socket._paused = false; } -exports._connectionListener = connectionListener; + function updateOutgoingData(socket, state, delta) { state.outgoingData += delta; @@ -640,3 +635,10 @@ function socketOnWrap(ev, fn) { return res; } + +module.exports = { + STATUS_CODES, + Server, + ServerResponse, + _connectionListener: connectionListener +}; |