Skip to content

Commit dc9f97b

Browse files
tjfontainebnoordhuis
authored andcommitted
http: move OutgoingMessage into it's own file
1 parent bb56489 commit dc9f97b

4 files changed

Lines changed: 666 additions & 614 deletions

File tree

lib/_http_common.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ var IncomingMessage = incoming.IncomingMessage;
2727
var readStart = incoming.readStart;
2828
var readStop = incoming.readStop;
2929

30+
31+
var debug;
32+
if (process.env.NODE_DEBUG && /http/.test(process.env.NODE_DEBUG)) {
33+
debug = function(x) { console.error('HTTP: %s', x); };
34+
} else {
35+
debug = function() { };
36+
}
37+
exports.debug = debug;
38+
39+
exports.CRLF = '\r\n';
40+
exports.chunkExpression = /chunk/i;
41+
exports.continueExpression = /100-continue/i;
42+
3043
// Only called in the slow case where slow means
3144
// that the request headers were either fragmented
3245
// across multiple TCP packets or too large to be

0 commit comments

Comments
 (0)