Skip to content

Commit e6135ba

Browse files
kemitchellFishrock123
authored andcommitted
doc: mention http request "aborted" events
Fixes: #6925 PR-URL: #7270 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 7a17139 commit e6135ba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/api/http.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ The request implements the [Writable Stream][] interface. This is an
219219
Emitted when the request has been aborted by the client. This event is only
220220
emitted on the first call to `abort()`.
221221

222+
### Event: 'aborted'
223+
224+
`function () { }`
225+
226+
Emitted when the request has been aborted by the server and the network
227+
socket has closed.
228+
222229
### Event: 'checkExpectation'
223230

224231
`function (request, response) { }`
@@ -903,6 +910,13 @@ headers and data.
903910
It implements the [Readable Stream][] interface, as well as the
904911
following additional events, methods, and properties.
905912

913+
### Event: 'aborted'
914+
915+
`function () { }`
916+
917+
Emitted when the request has been aborted by the client and the network
918+
socket has closed.
919+
906920
### Event: 'close'
907921

908922
`function () { }`

0 commit comments

Comments
 (0)