Skip to content

Commit 33ba73d

Browse files
lpincagntem
authored andcommitted
doc: add documentation for response.flushHeaders()
PR-URL: nodejs#28807 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent fb3c263 commit 33ba73d

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
@@ -1185,6 +1185,13 @@ added: v0.0.2
11851185
The `response.finished` property will be `true` if [`response.end()`][]
11861186
has been called.
11871187

1188+
### response.flushHeaders()
1189+
<!-- YAML
1190+
added: v1.6.0
1191+
-->
1192+
1193+
Flushes the response headers. See also: [`request.flushHeaders()`][].
1194+
11881195
### response.getHeader(name)
11891196
<!-- YAML
11901197
added: v0.4.0
@@ -2207,6 +2214,7 @@ not abort the request or do anything besides add a `'timeout'` event.
22072214
[`new URL()`]: url.html#url_constructor_new_url_input_base
22082215
[`removeHeader(name)`]: #http_request_removeheader_name
22092216
[`request.end()`]: #http_request_end_data_encoding_callback
2217+
[`request.flushHeaders()`]: #http_request_flushheaders
22102218
[`request.getHeader()`]: #http_request_getheader_name
22112219
[`request.setHeader()`]: #http_request_setheader_name_value
22122220
[`request.setTimeout()`]: #http_request_settimeout_timeout_callback

0 commit comments

Comments
 (0)