Skip to content

Commit 6922231

Browse files
aautioMylesBorins
authored andcommitted
doc: fix api documentation of http.createServer
Fixes: #24105 PR-URL: #24869 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 5e09a3d commit 6922231

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

doc/api/http.md

+2-13
Original file line numberDiff line numberDiff line change
@@ -1720,21 +1720,10 @@ A collection of all the standard HTTP response status codes, and the
17201720
short description of each. For example, `http.STATUS_CODES[404] === 'Not
17211721
Found'`.
17221722

1723-
## http.createServer([options][, requestListener])
1723+
## http.createServer([requestListener])
17241724
<!-- YAML
17251725
added: v0.1.13
1726-
changes:
1727-
- version: v8.12.0
1728-
pr-url: https://github.com/nodejs/node/pull/15752
1729-
description: The `options` argument is supported now.
1730-
-->
1731-
- `options` {Object}
1732-
* `IncomingMessage` {http.IncomingMessage} Specifies the IncomingMessage class
1733-
to be used. Useful for extending the original `IncomingMessage`.
1734-
**Default:** `IncomingMessage`.
1735-
* `ServerResponse` {http.ServerResponse} Specifies the ServerResponse class to
1736-
be used. Useful for extending the original `ServerResponse`. **Default:**
1737-
`ServerResponse`.
1726+
-->
17381727
- `requestListener` {Function}
17391728

17401729
* Returns: {http.Server}

0 commit comments

Comments
 (0)