| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,11 +10,28 @@ separate module. | |||
| 10 | 10 | ## Class: https.Agent | |
| 11 | 11 | <!-- YAML | |
| 12 | 12 | added: v0.4.5 | |
| 13 | + changes: | ||
| 14 | + - version: v2.5.0 | ||
| 15 | + pr-url: https://github.com/nodejs/node/pull/2228 | ||
| 16 | + description: parameter `maxCachedSessions` added to `options` for TLS | ||
| 17 | + sessions reuse. | ||
| 18 | + - version: v5.3.0 | ||
| 19 | + pr-url: https://github.com/nodejs/node/pull/4252 | ||
| 20 | + description: support `0` `maxCachedSessions` to disable TLS session caching. | ||
| 13 | 21 | --> | |
| 14 | 22 | ||
| 15 | 23 | An [`Agent`][] object for HTTPS similar to [`http.Agent`][]. See | |
| 16 | 24 | [`https.request()`][] for more information. | |
| 17 | 25 | ||
| 26 | + ### new Agent([options]) | ||
| 27 | + | ||
| 28 | + * `options` {Object} Set of configurable options to set on the agent. | ||
| 29 | + Can have the same fields as for [`http.Agent(options)`][], and | ||
| 30 | + * `maxCachedSessions` {number} maximum number of TLS cached sessions. | ||
| 31 | + Use `0` to disable TLS session caching. **Default:** `100`. | ||
| 32 | + | ||
| 33 | + See [`Session Resumption`][] for infomation about TLS session reuse. | ||
| 34 | + | ||
| 18 | 35 | ## Class: https.Server | |
| 19 | 36 | <!-- YAML | |
| 20 | 37 | added: v0.3.4 | |
@@ -369,6 +386,7 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p | |||
| 369 | 386 | [`Agent`]: #https_class_https_agent | |
| 370 | 387 | [`URL`]: url.html#url_the_whatwg_url_api | |
| 371 | 388 | [`http.Agent`]: http.html#http_class_http_agent | |
| 389 | + [`http.Agent(options)`]: http.html#http_new_agent_options | ||
| 372 | 390 | [`http.Server#headersTimeout`]: http.html#http_server_headerstimeout | |
| 373 | 391 | [`http.Server#keepAliveTimeout`]: http.html#http_server_keepalivetimeout | |
| 374 | 392 | [`http.Server#maxHeadersCount`]: http.html#http_server_maxheaderscount | |
@@ -387,3 +405,4 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p | |||
| 387 | 405 | [`tls.connect()`]: tls.html#tls_tls_connect_options_callback | |
| 388 | 406 | [`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_options | |
| 389 | 407 | [`tls.createServer()`]: tls.html#tls_tls_createserver_options_secureconnectionlistener | |
| 408 | + [`Session Resumption`]: tls.html#tls_session_resumption | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments