Skip to content

Commit 2f2dc0d

Browse files
zbjornsonjasnell
authored andcommitted
doc: document clientRequest.aborted
Add documentation for http clientRequest.aborted. PR-URL: #11544 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent a3b49dd commit 2f2dc0d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/http.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,14 @@ added: v0.3.8
438438
Marks the request as aborting. Calling this will cause remaining data
439439
in the response to be dropped and the socket to be destroyed.
440440

441+
### request.aborted
442+
<!-- YAML
443+
added: v0.11.14
444+
-->
445+
446+
If a request has been aborted, this value is the time when the request was
447+
aborted, in milliseconds since 1 January 1970 00:00:00 UTC.
448+
441449
### request.end([data][, encoding][, callback])
442450
<!-- YAML
443451
added: v0.1.90

0 commit comments

Comments
 (0)