Skip to content

Commit

Permalink
doc: add information for IncomingMessage.destroy()
Browse files Browse the repository at this point in the history
Add documentation for `http.IncomingMessage.prototype.destroy()`.

Fixes: nodejs#4226
  • Loading branch information
Trott committed Jun 12, 2016
1 parent 197a465 commit 20ab480
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 fired and `error` is passed as an argument to
any listeners on the event.

### message.headers

The request/response headers object.
Expand Down

0 comments on commit 20ab480

Please sign in to comment.