diff options
author | Ari Autio <ari.autio@iki.fi> | 2018-12-06 12:13:33 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-12-10 20:36:30 +0300 |
commit | 692223182cc2700eb362218dae50b49fdcd56a93 (patch) | |
tree | 1dd2e2533cc2517e3f85987b0dff448d9fe4b2c9 /doc | |
parent | 5e09a3d4eddad7971a17ebe5398c8c7ce9c71139 (diff) |
doc: fix api documentation of http.createServer
Fixes: https://github.com/nodejs/node/issues/24105
PR-URL: https://github.com/nodejs/node/pull/24869
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/http.md | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/doc/api/http.md b/doc/api/http.md index 2a74dce019e..391a2bf4232 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1720,21 +1720,10 @@ A collection of all the standard HTTP response status codes, and the short description of each. For example, `http.STATUS_CODES[404] === 'Not Found'`. -## http.createServer([options][, requestListener]) +## http.createServer([requestListener]) <!-- YAML added: v0.1.13 -changes: - - version: v8.12.0 - pr-url: https://github.com/nodejs/node/pull/15752 - description: The `options` argument is supported now. ---> -- `options` {Object} - * `IncomingMessage` {http.IncomingMessage} Specifies the IncomingMessage class - to be used. Useful for extending the original `IncomingMessage`. - **Default:** `IncomingMessage`. - * `ServerResponse` {http.ServerResponse} Specifies the ServerResponse class to - be used. Useful for extending the original `ServerResponse`. **Default:** - `ServerResponse`. +--> - `requestListener` {Function} * Returns: {http.Server} |