Skip to content

Commit 377f7b9

Browse files
lpincaMylesBorins
authored andcommitted
doc: fix 'aborted' event documentation
The `'aborted'` event is only emitted on `http.IncomingMessage` instances. PR-URL: #15471 Fixes: #15259 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 6c9a9ff commit 377f7b9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

doc/api/http.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,6 @@ added: v1.4.1
284284
Emitted when the request has been aborted by the client. This event is only
285285
emitted on the first call to `abort()`.
286286

287-
### Event: 'aborted'
288-
<!-- YAML
289-
added: v0.3.8
290-
-->
291-
292-
Emitted when the request has been aborted by the server and the network
293-
socket has closed.
294-
295287
### Event: 'connect'
296288
<!-- YAML
297289
added: v0.7.0
@@ -1196,8 +1188,7 @@ following additional events, methods, and properties.
11961188
added: v0.3.8
11971189
-->
11981190

1199-
Emitted when the request has been aborted by the client and the network
1200-
socket has closed.
1191+
Emitted when the request has been aborted and the network socket has closed.
12011192

12021193
### Event: 'close'
12031194
<!-- YAML

0 commit comments

Comments
 (0)