From 62e15a793a5695b383c2940c5193472993e5400d Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Thu, 8 Aug 2019 21:12:41 +0200 Subject: [PATCH] http: outgoing cork PR-URL: https://github.com/nodejs/node/pull/29053 Reviewed-By: Anna Henningsen --- doc/api/http.md | 16 +++++++++ lib/_http_outgoing.js | 45 ++++++++++++++++++++---- lib/internal/http2/compat.js | 12 +++++++ test/parallel/test-http-response-cork.js | 33 +++++++++++++++++ 4 files changed, 100 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 46450d806733f1..cab01f3e30c58d 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