Skip to content

Commit 0667d0c

Browse files
lpincatargos
authored andcommitted
doc: add documentation for response.flushHeaders()
PR-URL: #28807 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 3c30456 commit 0667d0c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/api/http.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ request was initiated via [`http.get()`][].
614614
added: v1.6.0
615615
-->
616616

617-
Flush the request headers.
617+
Flushes the request headers.
618618

619619
For efficiency reasons, Node.js normally buffers the request headers until
620620
`request.end()` is called or the first chunk of request data is written. It
@@ -1183,6 +1183,13 @@ added: v0.0.2
11831183
The `response.finished` property will be `true` if [`response.end()`][]
11841184
has been called.
11851185

1186+
### response.flushHeaders()
1187+
<!-- YAML
1188+
added: v1.6.0
1189+
-->
1190+
1191+
Flushes the response headers. See also: [`request.flushHeaders()`][].
1192+
11861193
### response.getHeader(name)
11871194
<!-- YAML
11881195
added: v0.4.0
@@ -2206,6 +2213,7 @@ not abort the request or do anything besides add a `'timeout'` event.
22062213
[`new URL()`]: url.html#url_constructor_new_url_input_base
22072214
[`removeHeader(name)`]: #http_request_removeheader_name
22082215
[`request.end()`]: #http_request_end_data_encoding_callback
2216+
[`request.flushHeaders()`]: #http_request_flushheaders
22092217
[`request.getHeader()`]: #http_request_getheader_name
22102218
[`request.setHeader()`]: #http_request_setheader_name_value
22112219
[`request.setTimeout()`]: #http_request_settimeout_timeout_callback

0 commit comments

Comments
 (0)