Skip to content

Commit 658fbdc

Browse files
darai0512MylesBorins
authored andcommitted
doc: add http.ClientRequest maxHeadersCount
In http.ClientRequest's doc, add maxHeadersCount as a public property. And in the description of server's one, change a hyphen to a comma. PR-URL: #20361 Refs: #20359 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 289e4ce commit 658fbdc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/api/http.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,12 @@ const setCookie = request.getHeader('set-cookie');
607607
// setCookie is of type string[]
608608
```
609609

610+
### request.maxHeadersCount
611+
612+
* {number} **Default:** `2000`
613+
614+
Limits maximum response headers count. If set to 0, no limit will be applied.
615+
610616
### request.removeHeader(name)
611617
<!-- YAML
612618
added: v1.6.0
@@ -933,7 +939,7 @@ added: v0.7.0
933939

934940
* {number} **Default:** `2000`
935941

936-
Limits maximum incoming headers count. If set to 0 - no limit will be applied.
942+
Limits maximum incoming headers count. If set to 0, no limit will be applied.
937943

938944
### server.setTimeout([msecs][, callback])
939945
<!-- YAML

0 commit comments

Comments
 (0)