From d08bd46714a7212d7ee8ab9eba00750d34eb2f9d Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sun, 14 Jul 2019 18:13:08 +0200 Subject: [PATCH] http: writableFinished --- doc/api/http.md | 9 ++++++ lib/_http_outgoing.js | 9 ++++++ .../test-http-outgoing-writableFinished.js | 32 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 test/parallel/test-http-outgoing-writableFinished.js diff --git a/doc/api/http.md b/doc/api/http.md index cc0c7ae1ce4917..26b6d18df49cec 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1458,6 +1458,15 @@ Returns `true` if the entire data was flushed successfully to the kernel buffer. Returns `false` if all or part of the data was queued in user memory. `'drain'` will be emitted when the buffer is free again. +### response.writableFinished + + +* {boolean} + +Is `true` if all data has been flushed to the underlying system. + ### response.writeContinue()