From a01e829fb02e4f2055a6a96a6d05caf1cede301f Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Mon, 12 Nov 2018 12:36:32 +0100 Subject: [PATCH] doc: document http request.finished boolean PR-URL: https://github.com/nodejs/node/pull/24319 Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca Reviewed-By: Vse Mozhet Byt Reviewed-By: Franziska Hinkelmann Reviewed-By: Trivikram Kamat --- doc/api/http.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index 442cfc22ded97c..1c6b5717e0049c 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -575,6 +575,17 @@ If `data` is specified, it is equivalent to calling If `callback` is specified, it will be called when the request stream is finished. +### request.finished + + +* {boolean} + +The `request.finished` property will be `true` if [`request.end()`][] +has been called. `request.end()` will automatically be called if the +request was initiated via [`http.get()`][]. + ### request.flushHeaders()