Skip to content

Commit d622b67

Browse files
zbjornsonMylesBorins
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 a7df345 commit d622b67

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
@@ -410,6 +410,14 @@ added: v0.3.8
410410
Marks the request as aborting. Calling this will cause remaining data
411411
in the response to be dropped and the socket to be destroyed.
412412

413+
### request.aborted
414+
<!-- YAML
415+
added: v0.11.14
416+
-->
417+
418+
If a request has been aborted, this value is the time when the request was
419+
aborted, in milliseconds since 1 January 1970 00:00:00 UTC.
420+
413421
### request.end([data][, encoding][, callback])
414422
<!-- YAML
415423
added: v0.1.90

0 commit comments

Comments
 (0)