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 a25626c

Browse filesBrowse files
XMB5addaleax
authored andcommitted
doc: clarify IncomingMessage.destroy() description
State that the 'error' event is emitted on the underlying socket, not the IncomingMessage object. PR-URL: #30255 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
1 parent 4800b62 commit a25626c
Copy full SHA for a25626c

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1798,8 +1798,8 @@ added: v0.3.0
17981798
* `error` {Error}
17991799

18001800
Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`
1801-
is provided, an `'error'` event is emitted and `error` is passed as an argument
1802-
to any listeners on the event.
1801+
is provided, an `'error'` event is emitted on the socket and `error` is passed
1802+
as an argument to any listeners on the event.
18031803

18041804
### message.headers
18051805
<!-- YAML

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.