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 <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
31147c4704
commit
d50fc510a8
@ -10,11 +10,28 @@ separate module.
|
|||||||
## Class: https.Agent
|
## Class: https.Agent
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v0.4.5
|
added: v0.4.5
|
||||||
|
changes:
|
||||||
|
- version: v2.5.0
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/2228
|
||||||
|
description: parameter `maxCachedSessions` added to `options` for TLS
|
||||||
|
sessions reuse.
|
||||||
|
- version: v5.3.0
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/4252
|
||||||
|
description: support `0` `maxCachedSessions` to disable TLS session caching.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
An [`Agent`][] object for HTTPS similar to [`http.Agent`][]. See
|
An [`Agent`][] object for HTTPS similar to [`http.Agent`][]. See
|
||||||
[`https.request()`][] for more information.
|
[`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
|
## Class: https.Server
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v0.3.4
|
added: v0.3.4
|
||||||
@ -369,6 +386,7 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p
|
|||||||
[`Agent`]: #https_class_https_agent
|
[`Agent`]: #https_class_https_agent
|
||||||
[`URL`]: url.html#url_the_whatwg_url_api
|
[`URL`]: url.html#url_the_whatwg_url_api
|
||||||
[`http.Agent`]: http.html#http_class_http_agent
|
[`http.Agent`]: http.html#http_class_http_agent
|
||||||
|
[`http.Agent(options)`]: http.html#http_new_agent_options
|
||||||
[`http.Server#headersTimeout`]: http.html#http_server_headerstimeout
|
[`http.Server#headersTimeout`]: http.html#http_server_headerstimeout
|
||||||
[`http.Server#keepAliveTimeout`]: http.html#http_server_keepalivetimeout
|
[`http.Server#keepAliveTimeout`]: http.html#http_server_keepalivetimeout
|
||||||
[`http.Server#maxHeadersCount`]: http.html#http_server_maxheaderscount
|
[`http.Server#maxHeadersCount`]: http.html#http_server_maxheaderscount
|
||||||
@ -387,3 +405,4 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p
|
|||||||
[`tls.connect()`]: tls.html#tls_tls_connect_options_callback
|
[`tls.connect()`]: tls.html#tls_tls_connect_options_callback
|
||||||
[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_options
|
[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_options
|
||||||
[`tls.createServer()`]: tls.html#tls_tls_createserver_options_secureconnectionlistener
|
[`tls.createServer()`]: tls.html#tls_tls_createserver_options_secureconnectionlistener
|
||||||
|
[`Session Resumption`]: tls.html#tls_session_resumption
|
||||||
|
Loading…
x
Reference in New Issue
Block a user