summaryrefslogtreecommitdiff
path: root/doc/api/https.md
diff options
context:
space:
mode:
authorOuyang Yadong <oyydoibh@gmail.com>2018-10-31 16:53:38 +0800
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-11-02 00:36:40 +0200
commit5689d553920e6276065517966fcaf8e02f498fc1 (patch)
tree56bf834f563b1767b753e6d3693c8bcd8d87a209 /doc/api/https.md
parent98819dfa5853d7c8355d70aa1aa7783677c391e5 (diff)
downloadandroid-node-v8-5689d553920e6276065517966fcaf8e02f498fc1.tar.gz
android-node-v8-5689d553920e6276065517966fcaf8e02f498fc1.tar.bz2
android-node-v8-5689d553920e6276065517966fcaf8e02f498fc1.zip
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>
Diffstat (limited to 'doc/api/https.md')
-rw-r--r--doc/api/https.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/https.md b/doc/api/https.md
index 66c96f2c67..777fbab741 100644
--- a/doc/api/https.md
+++ b/doc/api/https.md
@@ -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/