Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 60c054b

Browse filesBrowse files
TrottMyles Borins
authored andcommitted
doc: add information for IncomingMessage.destroy()
Add documentation for `http.IncomingMessage.prototype.destroy()`. PR-URL: #7237 Fixes: #4226 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
1 parent 1a5c025 commit 60c054b
Copy full SHA for 60c054b

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.