Browse Source

doc: add information for IncomingMessage.destroy()

Add documentation for `http.IncomingMessage.prototype.destroy()`.

PR-URL: https://github.com/nodejs/node/pull/7237
Fixes: https://github.com/nodejs/node/issues/4226
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
v6.x
Rich Trott 9 years ago
committed by Evan Lucas
parent
commit
5d03bdd94f
  1. 8
      doc/api/http.md

8
doc/api/http.md

@ -910,6 +910,14 @@ following additional events, methods, and properties.
Indicates that the underlying connection was closed.
Just like `'end'`, this event occurs only once per response.
### message.destroy([error])
* `error` {Error}
Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`
is provided, an `'error'` event is emitted and `error` is passed as an argument
to any listeners on the event.
### message.headers
The request/response headers object.

Loading…
Cancel
Save