From 67790962daccb5ff19c977119d7231cbe175c206 Mon Sep 17 00:00:00 2001 From: Daiki Arai Date: Mon, 23 Apr 2018 03:48:41 +0900 Subject: [PATCH] https: defines maxHeadersCount in the constructor In Refs, http.Server's maxHeadersCount field was defined in the constructor to make hidden class stable and so on. Also in https.Server, we can use maxHeadersCount the same as http via connectionListener. So, defines it in the constructor and documentation. Refs: https://github.com/nodejs/node/pull/9116 PR-URL: https://github.com/nodejs/node/pull/20359 Reviewed-By: Matteo Collina Reviewed-By: Trivikram Kamat --- doc/api/https.md | 8 ++ lib/https.js | 1 + test/parallel/test-https-max-headers-count.js | 73 +++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 test/parallel/test-https-max-headers-count.js diff --git a/doc/api/https.md b/doc/api/https.md index e6795fea55beb5..4fdd2fe7bc8111 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -36,6 +36,13 @@ See [`server.close()`][`http.close()`] from the HTTP module for details. Starts the HTTPS server listening for encrypted connections. This method is identical to [`server.listen()`][] from [`net.Server`][]. + +### server.maxHeadersCount + +- {number} **Default:** `2000` + +See [`http.Server#maxHeadersCount`][]. + ### server.setTimeout([msecs][, callback])