Skip to content

Commit

Permalink
doc: clarify when http emits aborted event
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Jun 17, 2019
1 parent c1f0cbe commit 8fbda01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ Until the data is consumed, the `'end'` event will not fire. Also, until
the data is read it will consume memory that can eventually lead to a
'process out of memory' error.

Unlike the `request` object, if the response closes prematurely, the
`response` object does not emit an `'error'` but instead emits the
`'aborted'` event.

Node.js does not check whether Content-Length and the length of the
body which has been transmitted are equal or not.

Expand Down

0 comments on commit 8fbda01

Please sign in to comment.