From be960d0c6e3ffaf6d230288c386b3b52f023cf23 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 b138f22b2959ab..30fb7cd030f51e 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -3943,9 +3943,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 @@ -3973,9 +3973,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