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 5d03bdd

Browse filesBrowse files
Trottevanlucas
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 a113734 commit 5d03bdd
Copy full SHA for 5d03bdd

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
@@ -910,6 +910,14 @@ following additional events, methods, and properties.
910910
Indicates that the underlying connection was closed.
911911
Just like `'end'`, this event occurs only once per response.
912912

913+
### message.destroy([error])
914+
915+
* `error` {Error}
916+
917+
Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`
918+
is provided, an `'error'` event is emitted and `error` is passed as an argument
919+
to any listeners on the event.
920+
913921
### message.headers
914922

915923
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.