From b5a611f37c720969454333a4b3845125bca6eb2f Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Thu, 8 Aug 2019 21:12:41 +0200 Subject: [PATCH] http: outgoing cork --- doc/api/http.md | 16 +++++++++ lib/_http_outgoing.js | 45 ++++++++++++++++++++---- lib/_stream_duplex.js | 10 ++++++ lib/internal/http2/compat.js | 12 +++++++ test/parallel/test-http-response-cork.js | 33 +++++++++++++++++ 5 files changed, 110 insertions(+), 6 deletions(-) create mode 100644 test/parallel/test-http-response-cork.js diff --git a/doc/api/http.md b/doc/api/http.md index 81e07b482af8d4..f4d7cdf2adbbe7 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1231,6 +1231,13 @@ deprecated: v13.0.0 See [`response.socket`][]. +### response.cork() + + +See [`writable.cork()`][]. + ### response.end(\[data\[, encoding\]\]\[, callback\]) + +See [`writable.uncork()`][]. + ### response.writableEnded