Skip to content

Commit

Permalink
doc: clarify when http emits aborted event
Browse files Browse the repository at this point in the history
PR-URL: #28262
Refs: #28172
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
ronag authored and targos committed Jul 2, 2019
1 parent 72f52a3 commit 359e20f
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'` event 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 359e20f

Please sign in to comment.