mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: add types and their corresponding return values
This commit supplements some types and their corresponding return values in docs, including `AsyncResource`, `DiffieHellman`, `ECDH`, `https.Server`, `repl.REPLServer`. PR-URL: https://github.com/nodejs/node/pull/23998 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
762679efec
commit
b182e2e8b2
6 files changed
+22
-1
No files matched your search
@@ -28,6 +28,7 @@ This class is a subclass of `tls.Server` and emits events same as
|
||||
added: v0.1.90
|
||||
-->
|
||||
* `callback` {Function}
|
||||
* Returns: {https.Server}
|
||||
|
||||
See [`server.close()`][`http.close()`] from the HTTP module for details.
|
||||
|
||||
@@ -49,6 +50,7 @@ added: v0.11.2
|
||||
-->
|
||||
* `msecs` {number} **Default:** `120000` (2 minutes)
|
||||
* `callback` {Function}
|
||||
* Returns: {https.Server}
|
||||
|
||||
See [`http.Server#setTimeout()`][].
|
||||
|
||||
@@ -75,6 +77,7 @@ added: v0.3.4
|
||||
* `options` {Object} Accepts `options` from [`tls.createServer()`][],
|
||||
[`tls.createSecureContext()`][] and [`http.createServer()`][].
|
||||
* `requestListener` {Function} A listener to be added to the `'request'` event.
|
||||
* Returns: {https.Server}
|
||||
|
||||
```js
|
||||
// curl -k https://localhost:8000/
|
||||
|
||||
Reference in new issue
Block a user