|
@ -1596,14 +1596,13 @@ This is an EventEmitter with the following events: |
|
|
`request` is an instance of `http.ServerRequest` and `response` is |
|
|
`request` is an instance of `http.ServerRequest` and `response` is |
|
|
an instance of `http.ServerResponse` |
|
|
an instance of `http.ServerResponse` |
|
|
|
|
|
|
|
|
### Event: 'stream' |
|
|
### Event: 'connection' |
|
|
|
|
|
|
|
|
`function (stream) { }` |
|
|
`function (stream) { }` |
|
|
|
|
|
|
|
|
When a new TCP stream is established. |
|
|
When a new TCP stream is established. `stream` is an object of type |
|
|
`stream` is an object of type `http.Connection`. Usually users |
|
|
`net.Stream`. Usually users will not want to access this event. The |
|
|
will not want to access this event. The `stream` can also be |
|
|
`stream` can also be accessed at `request.connection`. |
|
|
accessed at `request.stream`. |
|
|
|
|
|
|
|
|
|
|
|
### Event: 'close' |
|
|
### Event: 'close' |
|
|
|
|
|
|
|
@ -1784,7 +1783,9 @@ Resumes a paused request. |
|
|
|
|
|
|
|
|
The `net.Stream` object assocated with the connection. |
|
|
The `net.Stream` object assocated with the connection. |
|
|
|
|
|
|
|
|
With HTTPS support, use request.connection.verifyPeer() and request.connection.getPeerCertificate() to obtain the client's authentication details. |
|
|
With HTTPS support, use request.connection.verifyPeer() and |
|
|
|
|
|
request.connection.getPeerCertificate() to obtain the client's |
|
|
|
|
|
authentication details. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## http.ServerResponse |
|
|
## http.ServerResponse |
|
|