Skip to content

Commit 3b66ccf

Browse files
zbjornsonitaloacasas
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 f193c6f commit 3b66ccf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/http.md

+8
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,14 @@ added: v0.3.8
450450
Marks the request as aborting. Calling this will cause remaining data
451451
in the response to be dropped and the socket to be destroyed.
452452

453+
### request.aborted
454+
<!-- YAML
455+
added: v0.11.14
456+
-->
457+
458+
If a request has been aborted, this value is the time when the request was
459+
aborted, in milliseconds since 1 January 1970 00:00:00 UTC.
460+
453461
### request.end([data][, encoding][, callback])
454462
<!-- YAML
455463
added: v0.1.90

0 commit comments

Comments
 (0)