diff --git a/doc/api/http.md b/doc/api/http.md index bcb6dda3053647..3032db059f77c1 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 @@ -1183,6 +1183,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)