Skip to content

Commit

Permalink
doc: http event order correction
Browse files Browse the repository at this point in the history
PR-URL: nodejs#51464
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
  • Loading branch information
wh0 authored and anonrig committed Mar 25, 2024
1 parent 7ceb65d commit be960d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/http.md
Expand Up @@ -3943,9 +3943,9 @@ the following events will be emitted in the following order:
* `'data'` any number of times, on the `res` object
* (connection closed here)
* `'aborted'` on the `res` object
* `'close'`
* `'error'` on the `res` object with an error with message
`'Error: aborted'` and code `'ECONNRESET'`
* `'close'`
* `'close'` on the `res` object

If `req.destroy()` is called before a socket is assigned, the following
Expand Down Expand Up @@ -3973,9 +3973,9 @@ events will be emitted in the following order:
* `'data'` any number of times, on the `res` object
* (`req.destroy()` called here)
* `'aborted'` on the `res` object
* `'close'`
* `'error'` on the `res` object with an error with message `'Error: aborted'`
and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
* `'close'`
* `'close'` on the `res` object

If `req.abort()` is called before a socket is assigned, the following
Expand Down

0 comments on commit be960d0

Please sign in to comment.