From 0d32b9de77891fcb1775f6261cd980e0e9358862 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Mon, 22 Jul 2019 17:30:20 +0200 Subject: [PATCH] doc: add documentation for response.flushHeaders() PR-URL: https://github.com/nodejs/node/pull/28807 Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott --- doc/api/http.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index 8e65caabf07a7e..fefdd7fdb04e24 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -614,7 +614,7 @@ request was initiated via [`http.get()`][]. added: v1.6.0 --> -Flush the request headers. +Flushes the request headers. For efficiency reasons, Node.js normally buffers the request headers until `request.end()` is called or the first chunk of request data is written. It @@ -1185,6 +1185,13 @@ added: v0.0.2 The `response.finished` property will be `true` if [`response.end()`][] has been called. +### response.flushHeaders() + + +Flushes the response headers. See also: [`request.flushHeaders()`][]. + ### response.getHeader(name)