From 8ba308a838e615b65bc115b7472a5b2aaf771be7 Mon Sep 17 00:00:00 2001 From: wh0 Date: Mon, 25 Mar 2024 00:53:58 -0700 Subject: [PATCH] doc: http event order correction PR-URL: https://github.com/nodejs/node/pull/51464 Reviewed-By: James M Snell Reviewed-By: Paolo Insogna Reviewed-By: Marco Ippolito --- doc/api/http.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 780fac348ecde2..0e6eaf2155f6aa 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -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 @@ -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