From 1edd7f6393f3ca16650e0aa5f4b3c1abc270b566 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Tue, 17 Apr 2018 11:37:50 +0200 Subject: 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 Reviewed-By: Luigi Pinca --- doc/api/http.md | 12 +++++++++++- doc/api/http2.md | 10 ++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'doc') 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' + +* {boolean} + +The `message.aborted` property will be `true` if the request has +been aborted. + ### message.destroy([error]) + +* {boolean} + +The `request.aborted` property will be `true` if the request has +been aborted. + #### request.destroy([error])