doc: declare all parameter types

PR-URL: https://github.com/nodejs/node/pull/21782
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
Sam Ruby authored and Michaël Zasso committed 2018-08-07 08:53:33 +02:00
1 parent 2bf9a4a09e
commit 40af9767a2
15 files changed
+427 -290

No files matched your search

+9 -9
View File
@@ -27,7 +27,7 @@ This class is a subclass of `tls.Server` and emits events same as
<!-- YAML
added: v0.1.90
-->
- `callback` {Function}
* `callback` {Function}
See [`server.close()`][`http.close()`] from the HTTP module for details.
@@ -47,8 +47,8 @@ See [`http.Server#maxHeadersCount`][].
<!-- YAML
added: v0.11.2
-->
- `msecs` {number} **Default:** `120000` (2 minutes)
- `callback` {Function}
* `msecs` {number} **Default:** `120000` (2 minutes)
* `callback` {Function}
See [`http.Server#setTimeout()`][].
@@ -72,9 +72,9 @@ See [`http.Server#keepAliveTimeout`][].
<!-- YAML
added: v0.3.4
-->
- `options` {Object} Accepts `options` from [`tls.createServer()`][],
* `options` {Object} Accepts `options` from [`tls.createServer()`][],
[`tls.createSecureContext()`][] and [`http.createServer()`][].
- `requestListener` {Function} A listener to be added to the `'request'` event.
* `requestListener` {Function} A listener to be added to the `'request'` event.
Example:
@@ -124,9 +124,9 @@ changes:
description: The `options` parameter can be a WHATWG `URL` object.
-->
- `url` {string | URL}
- `options` {Object} Accepts the same `options` as
* `options` {Object | string | URL} Accepts the same `options` as
[`https.request()`][], with the `method` always set to `GET`.
- `callback` {Function}
* `callback` {Function}
Like [`http.get()`][] but for HTTPS.
@@ -175,12 +175,12 @@ changes:
description: The `options` parameter can be a WHATWG `URL` object.
-->
- `url` {string | URL}
- `options` {Object} Accepts all `options` from
* `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}
* `callback` {Function}
Makes a request to a secure web server.