diff options
author | Rich Trott <rtrott@gmail.com> | 2019-12-24 15:07:33 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-01-03 18:21:53 +0300 |
commit | 3571df3115a36030f0ee31d2369d59b6a34e1794 (patch) | |
tree | 475d82958bd8cc9dfc8a10c8a56b82cf3bebe80b /doc | |
parent | 3062bcb13cf7fde1c688dff38546c9873f336ab7 (diff) |
doc,https: use code markup/markdown in headers
PR-URL: https://github.com/nodejs/node/pull/31086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/https.md | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/api/https.md b/doc/api/https.md index 252d4bb3395..58741ba04f7 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -7,7 +7,7 @@ HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a separate module. -## Class: https.Agent +## Class: `https.Agent` <!-- YAML added: v0.4.5 changes: @@ -23,7 +23,7 @@ changes: An [`Agent`][] object for HTTPS similar to [`http.Agent`][]. See [`https.request()`][] for more information. -### new Agent(\[options\]) +### `new Agent([options])` <!-- YAML changes: - version: v12.5.0 @@ -45,7 +45,7 @@ changes: See [`Session Resumption`][] for information about TLS session reuse. -#### Event: 'keylog' +#### Event: `'keylog'` <!-- YAML added: v13.2.0 --> @@ -70,7 +70,7 @@ https.globalAgent.on('keylog', (line, tlsSocket) => { }); ``` -## Class: https.Server +## Class: `https.Server` <!-- YAML added: v0.3.4 --> @@ -79,7 +79,7 @@ added: v0.3.4 See [`http.Server`][] for more information. -### server.close(\[callback\]) +### `server.close([callback])` <!-- YAML added: v0.1.90 --> @@ -89,7 +89,7 @@ added: v0.1.90 See [`server.close()`][`http.close()`] from the HTTP module for details. -### server.headersTimeout +### `server.headersTimeout` <!-- YAML added: v11.3.0 --> @@ -98,18 +98,18 @@ added: v11.3.0 See [`http.Server#headersTimeout`][]. -### server.listen() +### `server.listen()` Starts the HTTPS server listening for encrypted connections. This method is identical to [`server.listen()`][] from [`net.Server`][]. -### server.maxHeadersCount +### `server.maxHeadersCount` * {number} **Default:** `2000` See [`http.Server#maxHeadersCount`][]. -### server.setTimeout(\[msecs\]\[, callback\]) +### `server.setTimeout([msecs][, callback])` <!-- YAML added: v0.11.2 --> @@ -120,7 +120,7 @@ added: v0.11.2 See [`http.Server#setTimeout()`][]. -### server.timeout +### `server.timeout` <!-- YAML added: v0.11.2 --> @@ -129,7 +129,7 @@ added: v0.11.2 See [`http.Server#timeout`][]. -### server.keepAliveTimeout +### `server.keepAliveTimeout` <!-- YAML added: v8.0.0 --> @@ -138,7 +138,7 @@ added: v8.0.0 See [`http.Server#keepAliveTimeout`][]. -## https.createServer(\[options\]\[, requestListener\]) +## `https.createServer([options][, requestListener])` <!-- YAML added: v0.3.4 --> @@ -181,8 +181,8 @@ https.createServer(options, (req, res) => { }).listen(8000); ``` -## https.get(options\[, callback\]) -## https.get(url\[, options\]\[, callback\]) +## `https.get(options[, callback])` +## `https.get(url[, options][, callback])` <!-- YAML added: v0.3.6 changes: @@ -222,15 +222,15 @@ https.get('https://encrypted.google.com/', (res) => { }); ``` -## https.globalAgent +## `https.globalAgent` <!-- YAML added: v0.5.9 --> Global instance of [`https.Agent`][] for all HTTPS client requests. -## https.request(options\[, callback\]) -## https.request(url\[, options\]\[, callback\]) +## `https.request(options[, callback])` +## `https.request(url[, options][, callback])` <!-- YAML added: v0.3.6 changes: |