Skip to content

Commit ff83ffa

Browse files
committed
doc: add Array type in http request headers
The http.request allows sending headers as an array of strings. Fixes: #57986
1 parent 4cd8e19 commit ff83ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3818,7 +3818,7 @@ changes:
38183818
* `family` {number} IP address family to use when resolving `host` or
38193819
`hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and
38203820
v6 will be used.
3821-
* `headers` {Object} An object containing request headers.
3821+
* `headers` {Object|Array} An object or an array of strings containing request headers. The array is in the same format as request.rawHeaders.
38223822
* `hints` {number} Optional [`dns.lookup()` hints][].
38233823
* `host` {string} A domain name or IP address of the server to issue the
38243824
request to. **Default:** `'localhost'`.

0 commit comments

Comments
 (0)