diff options
author | Robert Nagy <ronagy@icloud.com> | 2018-04-17 12:37:50 +0300 |
---|---|---|
committer | Beth Griggs <Bethany.Griggs@uk.ibm.com> | 2018-10-17 02:07:24 +0300 |
commit | 1edd7f6393f3ca16650e0aa5f4b3c1abc270b566 (patch) | |
tree | 82c5a5996341f0a83d38bb1cb3097d72854ee5ba /doc | |
parent | 98ed30f3f546ded9ff9c014bc5ba69d6222f1ffa (diff) |
http: added aborted property to request
Backport-PR-URL: https://github.com/nodejs/node/pull/22850
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')
-rw-r--r-- | doc/api/http.md | 12 | ||||
-rw-r--r-- | doc/api/http2.md | 10 |
2 files changed, 21 insertions, 1 deletions
diff --git a/doc/api/http.md b/doc/api/http.md index 0640ec417d0..ecffb87be4b 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1401,7 +1401,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 @@ -1411,6 +1411,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 7d9cbadd1de..20d25cdbee6 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2422,6 +2422,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 |