summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAri Autio <ari.autio@iki.fi>2018-12-06 11:13:33 +0200
committerMyles Borins <mylesborins@google.com>2018-12-10 12:36:30 -0500
commit692223182cc2700eb362218dae50b49fdcd56a93 (patch)
tree1dd2e2533cc2517e3f85987b0dff448d9fe4b2c9
parent5e09a3d4eddad7971a17ebe5398c8c7ce9c71139 (diff)
downloadnode-new-692223182cc2700eb362218dae50b49fdcd56a93.tar.gz
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>
-rw-r--r--doc/api/http.md15
1 files changed, 2 insertions, 13 deletions
diff --git a/doc/api/http.md b/doc/api/http.md
index 2a74dce019..391a2bf423 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}