Skip to content

Commit

Permalink
doc: http event order correction
Browse files Browse the repository at this point in the history
PR-URL: #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 marco-ippolito committed May 3, 2024
1 parent 9771f41 commit 8ba308a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -3941,9 +3941,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 @@ -3971,9 +3971,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 8ba308a

Please sign in to comment.