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()`