Skip to content

Commit

Permalink
doc: clarify IncomingMessage.destroy() description
Browse files Browse the repository at this point in the history
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 addaleax committed Nov 30, 2019
1 parent 4800b62 commit a25626c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/http.md
Expand Up @@ -1798,8 +1798,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
Expand Down

0 comments on commit a25626c

Please sign in to comment.