summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorRobert Nagy <ronagy@icloud.com>2018-04-17 11:37:50 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2018-04-26 19:38:27 +0200
commitd5e363b77ebaf1caf67cd7528224b651c86815c1 (patch)
tree70780d6814d10b0d65904408ba57754b74657c43 /doc/api
parent71059fbfa531f0229ca70a23c0082cec7315d6b4 (diff)
downloadandroid-node-v8-d5e363b77ebaf1caf67cd7528224b651c86815c1.tar.gz
android-node-v8-d5e363b77ebaf1caf67cd7528224b651c86815c1.tar.bz2
android-node-v8-d5e363b77ebaf1caf67cd7528224b651c86815c1.zip
http: added aborted property to request
PR-URL: https://github.com/nodejs/node/pull/20094 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/http.md12
-rw-r--r--doc/api/http2.md10
2 files changed, 21 insertions, 1 deletions
diff --git a/doc/api/http.md b/doc/api/http.md
index d6f738cb81..d3e495ea3d 100644
--- a/doc/api/http.md
+++ b/doc/api/http.md
@@ -1483,7 +1483,7 @@ following additional events, methods, and properties.
added: v0.3.8
-->
-Emitted when the request has been aborted and the network socket has closed.
+Emitted when the request has been aborted.
### Event: 'close'
<!-- YAML
@@ -1493,6 +1493,16 @@ added: v0.4.2
Indicates that the underlying connection was closed.
Just like `'end'`, this event occurs only once per response.
+### message.aborted
+<!-- YAML
+added: REPLACEME
+-->
+
+* {boolean}
+
+The `message.aborted` property will be `true` if the request has
+been aborted.
+
### message.destroy([error])
<!-- YAML
added: v0.3.0
diff --git a/doc/api/http2.md b/doc/api/http2.md
index 084cc7ad37..c47d4c7e57 100644
--- a/doc/api/http2.md
+++ b/doc/api/http2.md
@@ -2417,6 +2417,16 @@ added: v8.4.0
Indicates that the underlying [`Http2Stream`][] was closed.
Just like `'end'`, this event occurs only once per response.
+#### request.aborted
+<!-- YAML
+added: REPLACEME
+-->
+
+* {boolean}
+
+The `request.aborted` property will be `true` if the request has
+been aborted.
+
#### request.destroy([error])
<!-- YAML
added: v8.4.0