|
@ -170,7 +170,10 @@ var contentLengthExpression = /Content-Length/i; |
|
|
function IncomingMessage (socket) { |
|
|
function IncomingMessage (socket) { |
|
|
events.EventEmitter.call(this); |
|
|
events.EventEmitter.call(this); |
|
|
|
|
|
|
|
|
|
|
|
// TODO Remove one of these eventually.
|
|
|
this.socket = socket; |
|
|
this.socket = socket; |
|
|
|
|
|
this.connection = socket; |
|
|
|
|
|
|
|
|
this.httpVersion = null; |
|
|
this.httpVersion = null; |
|
|
this.headers = {}; |
|
|
this.headers = {}; |
|
|
|
|
|
|
|
@ -221,7 +224,9 @@ IncomingMessage.prototype._addHeaderLine = function (field, value) { |
|
|
function OutgoingMessage (socket) { |
|
|
function OutgoingMessage (socket) { |
|
|
events.EventEmitter.call(this, socket); |
|
|
events.EventEmitter.call(this, socket); |
|
|
|
|
|
|
|
|
|
|
|
// TODO Remove one of these eventually.
|
|
|
this.socket = socket; |
|
|
this.socket = socket; |
|
|
|
|
|
this.connection = socket; |
|
|
|
|
|
|
|
|
this.output = []; |
|
|
this.output = []; |
|
|
this.outputEncodings = []; |
|
|
this.outputEncodings = []; |
|
|