Skip to content

Commit 8bd3cb2

Browse files
authored
doc: http event order correction
PR-URL: #51464 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
1 parent a7f170e commit 8bd3cb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/http.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3943,9 +3943,9 @@ the following events will be emitted in the following order:
39433943
* `'data'` any number of times, on the `res` object
39443944
* (connection closed here)
39453945
* `'aborted'` on the `res` object
3946+
* `'close'`
39463947
* `'error'` on the `res` object with an error with message
39473948
`'Error: aborted'` and code `'ECONNRESET'`
3948-
* `'close'`
39493949
* `'close'` on the `res` object
39503950

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

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

0 commit comments

Comments
 (0)