File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ request was initiated via [`http.get()`][].
614
614
added: v1.6.0
615
615
-->
616
616
617
- Flush the request headers.
617
+ Flushes the request headers.
618
618
619
619
For efficiency reasons, Node.js normally buffers the request headers until
620
620
` request.end() ` is called or the first chunk of request data is written. It
@@ -1183,6 +1183,13 @@ added: v0.0.2
1183
1183
The ` response.finished ` property will be ` true ` if [ ` response.end() ` ] [ ]
1184
1184
has been called.
1185
1185
1186
+ ### response.flushHeaders()
1187
+ <!-- YAML
1188
+ added: v1.6.0
1189
+ -->
1190
+
1191
+ Flushes the response headers. See also: [ ` request.flushHeaders() ` ] [ ] .
1192
+
1186
1193
### response.getHeader(name)
1187
1194
<!-- YAML
1188
1195
added: v0.4.0
@@ -2206,6 +2213,7 @@ not abort the request or do anything besides add a `'timeout'` event.
2206
2213
[ `new URL()` ] : url.html#url_constructor_new_url_input_base
2207
2214
[ `removeHeader(name)` ] : #http_request_removeheader_name
2208
2215
[ `request.end()` ] : #http_request_end_data_encoding_callback
2216
+ [ `request.flushHeaders()` ] : #http_request_flushheaders
2209
2217
[ `request.getHeader()` ] : #http_request_getheader_name
2210
2218
[ `request.setHeader()` ] : #http_request_setheader_name_value
2211
2219
[ `request.setTimeout()` ] : #http_request_settimeout_timeout_callback
You can’t perform that action at this time.
0 commit comments