Skip to content

Commit 8ba308a

Browse files
wh0marco-ippolito
authored andcommitted
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 9771f41 commit 8ba308a

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
@@ -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)