From 9e1640606612fd23db19fdfd8e42e2704fe07f1f Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Thu, 1 Dec 2022 18:37:50 +0100 Subject: [PATCH] doc: sort http.createServer() options alphabetically MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/45680 Reviewed-By: Yagiz Nizipli Reviewed-By: Antoine du Hamel Reviewed-By: Zeyu "Alex" Yang Reviewed-By: Rich Trott Reviewed-By: Tobias Nießen --- doc/api/http.md | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 29f5efb9cd17a9..627d058fc11501 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -3146,32 +3146,32 @@ changes: --> * `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`. - * `requestTimeout`: Sets the timeout value in milliseconds for receiving - the entire request from the client. - See [`server.requestTimeout`][] for more information. - **Default:** `300000`. + * `connectionsCheckingInterval`: Sets the interval value in milliseconds to + check for request and headers timeout in incomplete requests. + **Default:** `30000`. * `headersTimeout`: Sets the timeout value in milliseconds for receiving the complete HTTP headers from the client. See [`server.headersTimeout`][] for more information. **Default:** `60000`. + * `insecureHTTPParser` {boolean} Use an insecure HTTP parser that accepts + invalid HTTP headers when `true`. Using the insecure parser should be + avoided. See [`--insecure-http-parser`][] for more information. + **Default:** `false`. + * `IncomingMessage` {http.IncomingMessage} Specifies the `IncomingMessage` + class to be used. Useful for extending the original `IncomingMessage`. + **Default:** `IncomingMessage`. + * `keepAlive` {boolean} If set to `true`, it enables keep-alive functionality + on the socket immediately after a new incoming connection is received, + similarly on what is done in \[`socket.setKeepAlive([enable][, initialDelay])`]\[`socket.setKeepAlive(enable, initialDelay)`]. + **Default:** `false`. + * `keepAliveInitialDelay` {number} If set to a positive number, it sets the + initial delay before the first keepalive probe is sent on an idle socket. + **Default:** `0`. * `keepAliveTimeout`: The number of milliseconds of inactivity a server needs to wait for additional incoming data, after it has finished writing the last response, before a socket will be destroyed. See [`server.keepAliveTimeout`][] for more information. **Default:** `5000`. - * `connectionsCheckingInterval`: Sets the interval value in milliseconds to - check for request and headers timeout in incomplete requests. - **Default:** `30000`. - * `insecureHTTPParser` {boolean} Use an insecure HTTP parser that accepts - invalid HTTP headers when `true`. Using the insecure parser should be - avoided. See [`--insecure-http-parser`][] for more information. - **Default:** `false` * `maxHeaderSize` {number} Optionally overrides the value of [`--max-http-header-size`][] for requests received by this server, i.e. the maximum length of request headers in bytes. @@ -3179,13 +3179,13 @@ changes: * `noDelay` {boolean} If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received. **Default:** `true`. - * `keepAlive` {boolean} If set to `true`, it enables keep-alive functionality - on the socket immediately after a new incoming connection is received, - similarly on what is done in \[`socket.setKeepAlive([enable][, initialDelay])`]\[`socket.setKeepAlive(enable, initialDelay)`]. - **Default:** `false`. - * `keepAliveInitialDelay` {number} If set to a positive number, it sets the - initial delay before the first keepalive probe is sent on an idle socket. - **Default:** `0`. + * `requestTimeout`: Sets the timeout value in milliseconds for receiving + the entire request from the client. + See [`server.requestTimeout`][] for more information. + * `ServerResponse` {http.ServerResponse} Specifies the `ServerResponse` class + to be used. Useful for extending the original `ServerResponse`. **Default:** + `ServerResponse`. + **Default:** `300000`. * `uniqueHeaders` {Array} A list of response headers that should be sent only once. If the header's value is an array, the items will be joined using `; `.