mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc,tools: formalize, unify, codify default values
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:
@@ -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`][].
|
||||
|
||||
@@ -160,9 +160,9 @@ changes:
|
||||
-->
|
||||
- `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`.
|
||||
- `protocol` **Default:** `https:`
|
||||
- `port` **Default:** `443`
|
||||
- `agent` **Default:** `https.globalAgent`
|
||||
- `callback` {Function}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user