From 0995002f4cb77d3e87b9a3b9e904148646d0c58f Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Thu, 26 Apr 2018 09:53:54 +0200 Subject: [PATCH] http: client aborted should be boolean. --- 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 f50199dfaf9d9c..ded10c3b9c5823 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