Skip to content

Commit

Permalink
doc: add http.ClientRequest maxHeadersCount
Browse files Browse the repository at this point in the history
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 <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
darai0512 authored and MylesBorins committed May 8, 2018
1 parent 289e4ce commit 658fbdc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,12 @@ const setCookie = request.getHeader('set-cookie');
// setCookie is of type string[]
```

### request.maxHeadersCount

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

Limits maximum response headers count. If set to 0, no limit will be applied.

### request.removeHeader(name)
<!-- YAML
added: v1.6.0
Expand Down Expand Up @@ -933,7 +939,7 @@ added: v0.7.0

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

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

### server.setTimeout([msecs][, callback])
<!-- YAML
Expand Down

0 comments on commit 658fbdc

Please sign in to comment.