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 <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
darai0512 authored and trivikr committed May 3, 2018
1 parent a957f24 commit 516349d
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 516349d

Please sign in to comment.