doc,tools: formalize, unify, codify default values

Backport-PR-URL: https://github.com/nodejs/node/pull/22388
PR-URL: https://github.com/nodejs/node/pull/19737
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Vse Mozhet Byt authored and Myles Borins committed 2018-09-06 09:42:35 -07:00
1 parent a02319368c
commit 50316e2021
30 files changed
+331 -357

No files matched your search

+8 -8
View File
@@ -40,7 +40,7 @@ This method is identical to [`server.listen()`][] from [`net.Server`][].
<!-- YAML
added: v0.11.2
-->
- `msecs` {number} Defaults to 120000 (2 minutes).
- `msecs` {number} **Default:** `120000` (2 minutes)
- `callback` {Function}
See [`http.Server#setTimeout()`][].
@@ -49,7 +49,7 @@ See [`http.Server#setTimeout()`][].
<!-- YAML
added: v0.11.2
-->
- {number} Defaults to 120000 (2 minutes).
- {number} **Default:** `120000` (2 minutes)
See [`http.Server#timeout`][].
@@ -57,7 +57,7 @@ See [`http.Server#timeout`][].
<!-- YAML
added: v8.0.0
-->
- {number} Defaults to 5000 (5 seconds).
- {number} **Default:** `5000` (5 seconds)
See [`http.Server#keepAliveTimeout`][].
@@ -155,11 +155,11 @@ changes:
pr-url: https://github.com/nodejs/node/pull/10638
description: The `options` parameter can be a WHATWG `URL` object.
-->
- `options` {Object | string | URL} Accepts all `options` from [`http.request()`][],
with some differences in default values:
- `protocol` Defaults to `https:`
- `port` Defaults to `443`.
- `agent` Defaults to `https.globalAgent`.
- `options` {Object | string | URL} Accepts all `options` from
[`http.request()`][], with some differences in default values:
- `protocol` **Default:** `https:`
- `port` **Default:** `443`
- `agent` **Default:** `https.globalAgent`
- `callback` {Function}