From cee0ad3985ad64f531362ffc6d1542008378fdb5 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 --- 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 4c8d993ae2b68b..d5f4819654b3d8 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])