Skip to content
Browse files

doc: clarify when http emits aborted event

PR-URL: #28262
Refs: #28172
Reviewed-By: Rich Trott <>
Reviewed-By: Trivikram Kamat <>
Reviewed-By: Franziska Hinkelmann <>
Reviewed-By: Ruben Bridgewater <>
  • Loading branch information...
ronag authored and addaleax committed Jun 17, 2019
1 parent 264cb79 commit 1a4f27ae21698d0ce38c1b279f3dd96c38652c74
Showing with 4 additions and 0 deletions.
  1. +4 −0 doc/api/
@@ -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.

0 comments on commit 1a4f27a

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