Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXadillaX <admin@xcoder.in>2017-06-10 21:09:35 +0300
committerAnna Henningsen <anna@addaleax.net>2017-07-11 20:16:38 +0300
commit74741fa52bdb9879b57dee85dc47ec16b8c6147f (patch)
treef470b6617089b3e4209dc76e48311583695c3328 /doc/api/https.md
parent3bb4ec80aec3ab9a5332f84035f33e774a927e4a (diff)
https: make opts optional & immutable when create
`opts` in `createServer` will be immutable that won't change origional opts value. What's more, it's optional which can make `requestListener` be the first argument. PR-URL: https://github.com/nodejs/node/pull/13599 Fixes: https://github.com/nodejs/node/issues/13584 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Diffstat (limited to 'doc/api/https.md')
-rw-r--r--doc/api/https.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/https.md b/doc/api/https.md
index f4000335a00..f6c56ef8ed7 100644
--- a/doc/api/https.md
+++ b/doc/api/https.md
@@ -46,7 +46,7 @@ added: v8.0.0
See [`http.Server#keepAliveTimeout`][].
-## https.createServer(options[, requestListener])
+## https.createServer([options][, requestListener])
<!-- YAML
added: v0.3.4
-->