From 99d76d773de75c7ab717a42dbf8a556552650911 Mon Sep 17 00:00:00 2001 From: Jonathan Boiser Date: Tue, 21 Jun 2016 22:02:18 -0500 Subject: [PATCH] http.createServer -> https.create... to illustrate "multiple addresses" comment (#749) --- docs/api/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/api/index.md b/docs/api/index.md index a235003..f2a6d38 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -123,9 +123,11 @@ var http = require('http'); var koa = require('koa'); var app = koa(); http.createServer(app.callback()).listen(3000); -http.createServer(app.callback()).listen(3001); +https.createServer(options, app.callback()).listen(3001); ``` +Here, `options` is a required argument for Node `https.createServer` containing certificate information. See the [Node documentation](https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener) for more details. + ## app.callback() Return a callback function suitable for the `http.createServer()`