From cd87b63a9af84aa9f1a94f42216eac4d81e06ab5 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Mon, 22 Jul 2019 17:30:20 +0200 Subject: [PATCH 1/2] doc: add documentation for response.flushHeaders() --- doc/api/http.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index 5bdcc66ac55a12..68eb53c09b118f 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1185,6 +1185,13 @@ added: v0.0.2 The `response.finished` property will be `true` if [`response.end()`][] has been called. +### response.flushHeaders() + + +Flush the response headers. + ### response.getHeader(name) -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 @@ -1190,7 +1190,7 @@ has been called. added: v1.6.0 --> -Flush the response headers. +Flushes the response headers. See also: [`request.flushHeaders()`][]. ### response.getHeader(name)