Skip to content

Commit

Permalink
doc: fix api documentation of http.createServer
Browse files Browse the repository at this point in the history
Fixes: #24105

PR-URL: #24869
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
aautio authored and MylesBorins committed Dec 10, 2018
1 parent 5e09a3d commit 6922231
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6922231

Please sign in to comment.