From 09e8c1abb99c4ceac7a7296fd54219169b8b455d Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Mon, 3 Jul 2023 08:20:24 +0200 Subject: [PATCH] doc: fix options order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move the `joinDuplicateHeaders` option to the correct alphabetical order. PR-URL: https://github.com/nodejs/node/pull/48617 Reviewed-By: Rafael Gonzaga Reviewed-By: Tobias Nießen --- doc/api/http.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index d8409fd56186dd..dd75b0a2126427 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -3228,6 +3228,10 @@ changes: * `IncomingMessage` {http.IncomingMessage} Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`. **Default:** `IncomingMessage`. + * `joinDuplicateHeaders` {boolean} It joins the field line values of multiple + headers in a request with `, ` instead of discarding the duplicates. + See [`message.headers`][] for more information. + **Default:** `false`. * `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)`]. @@ -3239,10 +3243,6 @@ changes: the entire request from the client. See [`server.requestTimeout`][] for more information. **Default:** `300000`. - * `joinDuplicateHeaders` {boolean} It joins the field line values of multiple - headers in a request with `, ` instead of discarding the duplicates. - See [`message.headers`][] for more information. - **Default:** `false`. * `ServerResponse` {http.ServerResponse} Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`. **Default:** `ServerResponse`. @@ -3465,6 +3465,10 @@ changes: invalid HTTP headers when `true`. Using the insecure parser should be avoided. See [`--insecure-http-parser`][] for more information. **Default:** `false` + * `joinDuplicateHeaders` {boolean} It joins the field line values of + multiple headers in a request with `, ` instead of discarding + the duplicates. See [`message.headers`][] for more information. + **Default:** `false`. * `localAddress` {string} Local interface to bind for network connections. * `localPort` {number} Local port to connect from. * `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][]. @@ -3492,10 +3496,6 @@ changes: * `uniqueHeaders` {Array} A list of request headers that should be sent only once. If the header's value is an array, the items will be joined using `; `. - * `joinDuplicateHeaders` {boolean} It joins the field line values of - multiple headers in a request with `, ` instead of discarding - the duplicates. See [`message.headers`][] for more information. - **Default:** `false`. * `callback` {Function} * Returns: {http.ClientRequest}