From 3e0d47c1f49fc3f360b6de95b61c2787b531e96d Mon Sep 17 00:00:00 2001 From: Jungku Lee Date: Fri, 29 Sep 2023 20:14:24 +0900 Subject: [PATCH] lib: update params in jsdoc for `HTTPRequestOptions` PR-URL: https://github.com/nodejs/node/pull/49872 Reviewed-By: Marco Ippolito Reviewed-By: Matteo Collina --- lib/http.js | 2 ++ lib/https.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/http.js b/lib/http.js index d86d36d12c2b14..9fce02d6e3b3ac 100644 --- a/lib/http.js +++ b/lib/http.js @@ -76,6 +76,7 @@ function createServer(opts, requestListener) { * @property {string} [host] A domain name or IP address of the server to issue the request to. * @property {string} [hostname] Alias for host. * @property {boolean} [insecureHTTPParser] Use an insecure HTTP parser that accepts invalid HTTP headers when true. + * @property {boolean} [joinDuplicateHeaders] Multiple header that joined with `,` field line values. * @property {string} [localAddress] Local interface to bind for network connections. * @property {number} [localPort] Local port to connect from. * @property {Function} [lookup] Custom lookup function. Default: dns.lookup(). @@ -88,6 +89,7 @@ function createServer(opts, requestListener) { * @property {AbortSignal} [signal] An AbortSignal that may be used to abort an ongoing request. * @property {string} [socketPath] Unix domain socket. * @property {number} [timeout] A number specifying the socket timeout in milliseconds. + * @property {Array} [uniqueHeaders] A list of request headers that should be sent only once. */ /** diff --git a/lib/https.js b/lib/https.js index 70ffa73ff1996b..ca8c49d5bef319 100644 --- a/lib/https.js +++ b/lib/https.js @@ -392,6 +392,7 @@ function request(...args) { * host?: string; * hostname?: string; * insecureHTTPParser?: boolean; + * joinDuplicateHeaders?: boolean; * localAddress?: string; * localPort?: number; * lookup?: Function; @@ -404,6 +405,7 @@ function request(...args) { * socketPath?: string; * timeout?: number; * signal?: AbortSignal; + * uniqueHeaders?: Array; * } | string | URL} [options] * @param {Function} [cb] * @returns {ClientRequest}