Skip to content

Commit 60c054b

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
doc: add information for IncomingMessage.destroy()
Add documentation for `http.IncomingMessage.prototype.destroy()`. PR-URL: #7237 Fixes: #4226 Reviewed-By: James M Snell <[email protected]> Reviewed-By: cjihrig - Colin Ihrig <[email protected]>
1 parent 1a5c025 commit 60c054b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/http.md

+8
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,14 @@ socket has closed.
874874
Indicates that the underlying connection was closed.
875875
Just like `'end'`, this event occurs only once per response.
876876

877+
### message.destroy([error])
878+
879+
* `error` {Error}
880+
881+
Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`
882+
is provided, an `'error'` event is emitted and `error` is passed as an argument
883+
to any listeners on the event.
884+
877885
### message.headers
878886

879887
The request/response headers object.

0 commit comments

Comments
 (0)