From 6cc559fbecc53e52e4a0a54621b75940b9998a93 Mon Sep 17 00:00:00 2001 From: Nicolas Moteau Date: Mon, 4 Mar 2019 17:28:29 +0100 Subject: [PATCH] doc: add missing https Agent maxCachedSessions PR-URL: https://github.com/nodejs/node/pull/26433 Refs: https://github.com/nodejs/node/pull/2228 Refs: https://github.com/nodejs/node/pull/4252 Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater --- doc/api/https.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/api/https.md b/doc/api/https.md index 75c2b57ab2085c..95e7e715c32ca5 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -10,11 +10,28 @@ separate module. ## Class: https.Agent An [`Agent`][] object for HTTPS similar to [`http.Agent`][]. See [`https.request()`][] for more information. +### new Agent([options]) + +* `options` {Object} Set of configurable options to set on the agent. + Can have the same fields as for [`http.Agent(options)`][], and + * `maxCachedSessions` {number} maximum number of TLS cached sessions. + Use `0` to disable TLS session caching. **Default:** `100`. + + See [`Session Resumption`][] for infomation about TLS session reuse. + ## Class: https.Server