We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8f9601 commit 56ae77aCopy full SHA for 56ae77a
doc/api/http.md
@@ -2061,8 +2061,13 @@ order:
2061
(`'data'` will not be emitted at all if the response body is empty, for
2062
instance, in most redirects)
2063
* `'end'` on the `res` object
2064
+* `'error'` if the server response is received while still writing to request.
2065
* `'close'`
2066
2067
+Note that `response` can be emitted even before the client request has
2068
+been ended (`end()`). If the client is still writing after `response` an
2069
+`ECONNRESET` error might also be emitted.
2070
+
2071
In the case of a connection error, the following events will be emitted:
2072
2073
* `'socket'`
0 commit comments