From 692223182cc2700eb362218dae50b49fdcd56a93 Mon Sep 17 00:00:00 2001 From: Ari Autio Date: Thu, 6 Dec 2018 11:13:33 +0200 Subject: [PATCH] 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 Reviewed-By: Trivikram Kamat --- doc/api/http.md | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 2a74dce019eb68..391a2bf4232f7a 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]) -- `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}