Skip to content
Permalink
Browse files

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>
  • Loading branch information
XMB5 authored and MylesBorins committed Nov 4, 2019
1 parent ca96061 commit 7bc8c85d53e893aadff82d7d3affa9d0b032f37a
Showing with 2 additions and 2 deletions.
  1. +2 −2 doc/api/http.md
@@ -1672,8 +1672,8 @@ added: v0.3.0
* `error` {Error}

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

### message.headers
<!-- YAML

0 comments on commit 7bc8c85

Please sign in to comment.
You can’t perform that action at this time.