diff --git a/doc/api/http.md b/doc/api/http.md index aaeb9403ff499b..266bc4ccb53340 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1808,13 +1808,22 @@ 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]) +- `requestListener` {Function} + +* Returns: {http.Server} + +Returns a new instance of [`http.Server`][]. + +The `requestListener` is a function which is automatically +added to the [`'request'`][] event. + +## http.createServer([options][, requestListener]) + * `options` {Object} * `IncomingMessage` {http.IncomingMessage} Specifies the `IncomingMessage`