From 658fbdc1057bac26756fa0c46c3778cb42aecde3 Mon Sep 17 00:00:00 2001 From: Daiki Arai Date: Mon, 23 Apr 2018 09:07:00 +0900 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/20361 Refs: https://github.com/nodejs/node/pull/20359 Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig --- doc/api/http.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index 673738f60a60b8..d98e4923bad401 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -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)