Skip to content

Commit 8ba308a

Browse files
wh0marco-ippolito
authored andcommittedMay 3, 2024
doc: http event order correction
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>
1 parent 9771f41 commit 8ba308a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎doc/api/http.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3941,9 +3941,9 @@ the following events will be emitted in the following order:
39413941
* `'data'` any number of times, on the `res` object
39423942
* (connection closed here)
39433943
* `'aborted'` on the `res` object
3944+
* `'close'`
39443945
* `'error'` on the `res` object with an error with message
39453946
`'Error: aborted'` and code `'ECONNRESET'`
3946-
* `'close'`
39473947
* `'close'` on the `res` object
39483948

39493949
If `req.destroy()` is called before a socket is assigned, the following
@@ -3971,9 +3971,9 @@ events will be emitted in the following order:
39713971
* `'data'` any number of times, on the `res` object
39723972
* (`req.destroy()` called here)
39733973
* `'aborted'` on the `res` object
3974+
* `'close'`
39743975
* `'error'` on the `res` object with an error with message `'Error: aborted'`
39753976
and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
3976-
* `'close'`
39773977
* `'close'` on the `res` object
39783978

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

0 commit comments

Comments
 (0)
Please sign in to comment.