Skip to content

Commit 9e16406

Browse files
lpincaRafaelGSS
authored andcommitted
doc: sort http.createServer() options alphabetically
PR-URL: #45680 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 2807efa commit 9e16406

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

doc/api/http.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -3146,46 +3146,46 @@ changes:
31463146
-->
31473147

31483148
* `options` {Object}
3149-
* `IncomingMessage` {http.IncomingMessage} Specifies the `IncomingMessage`
3150-
class to be used. Useful for extending the original `IncomingMessage`.
3151-
**Default:** `IncomingMessage`.
3152-
* `ServerResponse` {http.ServerResponse} Specifies the `ServerResponse` class
3153-
to be used. Useful for extending the original `ServerResponse`. **Default:**
3154-
`ServerResponse`.
3155-
* `requestTimeout`: Sets the timeout value in milliseconds for receiving
3156-
the entire request from the client.
3157-
See [`server.requestTimeout`][] for more information.
3158-
**Default:** `300000`.
3149+
* `connectionsCheckingInterval`: Sets the interval value in milliseconds to
3150+
check for request and headers timeout in incomplete requests.
3151+
**Default:** `30000`.
31593152
* `headersTimeout`: Sets the timeout value in milliseconds for receiving
31603153
the complete HTTP headers from the client.
31613154
See [`server.headersTimeout`][] for more information.
31623155
**Default:** `60000`.
3156+
* `insecureHTTPParser` {boolean} Use an insecure HTTP parser that accepts
3157+
invalid HTTP headers when `true`. Using the insecure parser should be
3158+
avoided. See [`--insecure-http-parser`][] for more information.
3159+
**Default:** `false`.
3160+
* `IncomingMessage` {http.IncomingMessage} Specifies the `IncomingMessage`
3161+
class to be used. Useful for extending the original `IncomingMessage`.
3162+
**Default:** `IncomingMessage`.
3163+
* `keepAlive` {boolean} If set to `true`, it enables keep-alive functionality
3164+
on the socket immediately after a new incoming connection is received,
3165+
similarly on what is done in \[`socket.setKeepAlive([enable][, initialDelay])`]\[`socket.setKeepAlive(enable, initialDelay)`].
3166+
**Default:** `false`.
3167+
* `keepAliveInitialDelay` {number} If set to a positive number, it sets the
3168+
initial delay before the first keepalive probe is sent on an idle socket.
3169+
**Default:** `0`.
31633170
* `keepAliveTimeout`: The number of milliseconds of inactivity a server
31643171
needs to wait for additional incoming data, after it has finished writing
31653172
the last response, before a socket will be destroyed.
31663173
See [`server.keepAliveTimeout`][] for more information.
31673174
**Default:** `5000`.
3168-
* `connectionsCheckingInterval`: Sets the interval value in milliseconds to
3169-
check for request and headers timeout in incomplete requests.
3170-
**Default:** `30000`.
3171-
* `insecureHTTPParser` {boolean} Use an insecure HTTP parser that accepts
3172-
invalid HTTP headers when `true`. Using the insecure parser should be
3173-
avoided. See [`--insecure-http-parser`][] for more information.
3174-
**Default:** `false`
31753175
* `maxHeaderSize` {number} Optionally overrides the value of
31763176
[`--max-http-header-size`][] for requests received by this server, i.e.
31773177
the maximum length of request headers in bytes.
31783178
**Default:** 16384 (16 KiB).
31793179
* `noDelay` {boolean} If set to `true`, it disables the use of Nagle's
31803180
algorithm immediately after a new incoming connection is received.
31813181
**Default:** `true`.
3182-
* `keepAlive` {boolean} If set to `true`, it enables keep-alive functionality
3183-
on the socket immediately after a new incoming connection is received,
3184-
similarly on what is done in \[`socket.setKeepAlive([enable][, initialDelay])`]\[`socket.setKeepAlive(enable, initialDelay)`].
3185-
**Default:** `false`.
3186-
* `keepAliveInitialDelay` {number} If set to a positive number, it sets the
3187-
initial delay before the first keepalive probe is sent on an idle socket.
3188-
**Default:** `0`.
3182+
* `requestTimeout`: Sets the timeout value in milliseconds for receiving
3183+
the entire request from the client.
3184+
See [`server.requestTimeout`][] for more information.
3185+
* `ServerResponse` {http.ServerResponse} Specifies the `ServerResponse` class
3186+
to be used. Useful for extending the original `ServerResponse`. **Default:**
3187+
`ServerResponse`.
3188+
**Default:** `300000`.
31893189
* `uniqueHeaders` {Array} A list of response headers that should be sent only
31903190
once. If the header's value is an array, the items will be joined
31913191
using `; `.

0 commit comments

Comments
 (0)