Skip to content

Commit

Permalink
doc: fix api documentation of http.createServer
Browse files Browse the repository at this point in the history
  • Loading branch information
aautio committed Dec 6, 2018
1 parent 5e09a3d commit 8d48c19
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 8d48c19

Please sign in to comment.