From 4b00c4fafaa2ae8c41c1f78823c0feb810ae4723 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Thu, 26 Apr 2018 09:53:54 +0200 Subject: [PATCH] http: make client `.aborted` boolean PR-URL: https://github.com/nodejs/node/pull/20230 Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina Reviewed-By: James M Snell --- doc/api/http.md | 10 ++++++++-- lib/_http_client.js | 8 ++------ test/parallel/test-http-abort-stream-end.js | 7 +++---- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 0672c242c3f962..8f2c531713b4f5 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -529,10 +529,16 @@ in the response to be dropped and the socket to be destroyed. ### request.aborted -If a request has been aborted, this value is the time when the request was -aborted, in milliseconds since 1 January 1970 00:00:00 UTC. +* {boolean} + +The `request.aborted` property will be `true` if the request has +been aborted. ### request.connection