@ -68,7 +68,7 @@ not be emitted.
### Event: 'upgrade'
`function (request, socket, head)`
`function (request, socket, head) { } `
Emitted each time a client requests a http upgrade. If this event isn't
listened for, then clients requesting an upgrade will have their connections
@ -476,7 +476,7 @@ agent. The `http.getAgent()` function allows you to access the agents.
### Event: 'upgrade'
`function (response, socket, head)`
`function (response, socket, head) { } `
Emitted each time a server responds to a request with an upgrade. If this
event isn't being listened for, clients receiving an upgrade header will have
@ -530,14 +530,6 @@ A client server pair that show you how to listen for the `upgrade` event using `
});
### Event: 'continue'
`function ()`
Emitted when the server sends a '100 Continue' HTTP response, usually because
the request contained 'Expect: 100-continue'. This is an instruction that
the client should send the request body.
### agent.maxSockets
By default set to 5. Determines how many concurrent sockets the agent can have open.
@ -593,6 +585,14 @@ This is a `Writable Stream`.
This is an `EventEmitter` with the following events:
### Event: 'continue'
`function () { }`
Emitted when the server sends a '100 Continue' HTTP response, usually because
the request contained 'Expect: 100-continue'. This is an instruction that
the client should send the request body.
### Event 'response'
`function (response) { }`
@ -651,6 +651,15 @@ Emitted when a piece of the message body is received.
Emitted exactly once for each message. No arguments. After
emitted no other events will be emitted on the response.
### Event: 'close'
`function (err) { }`
Indicates that the underlaying connection was terminated before
`end` event was emitted.
See [http.ServerRequest ](#http.ServerRequest )'s `'close'` event for more
information.
### response.statusCode
The 3-digit HTTP response status code. E.G. `404` .