Skip to content

Commit 6aa7101

Browse files
author
Jungku Lee
authored
lib: update params in jsdoc for HTTPRequestOptions
PR-URL: #49872 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent c935d4c commit 6aa7101

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/http.js

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ function createServer(opts, requestListener) {
7676
* @property {string} [host] A domain name or IP address of the server to issue the request to.
7777
* @property {string} [hostname] Alias for host.
7878
* @property {boolean} [insecureHTTPParser] Use an insecure HTTP parser that accepts invalid HTTP headers when true.
79+
* @property {boolean} [joinDuplicateHeaders] Multiple header that joined with `,` field line values.
7980
* @property {string} [localAddress] Local interface to bind for network connections.
8081
* @property {number} [localPort] Local port to connect from.
8182
* @property {Function} [lookup] Custom lookup function. Default: dns.lookup().
@@ -88,6 +89,7 @@ function createServer(opts, requestListener) {
8889
* @property {AbortSignal} [signal] An AbortSignal that may be used to abort an ongoing request.
8990
* @property {string} [socketPath] Unix domain socket.
9091
* @property {number} [timeout] A number specifying the socket timeout in milliseconds.
92+
* @property {Array} [uniqueHeaders] A list of request headers that should be sent only once.
9193
*/
9294

9395
/**

lib/https.js

+2
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ function request(...args) {
392392
* host?: string;
393393
* hostname?: string;
394394
* insecureHTTPParser?: boolean;
395+
* joinDuplicateHeaders?: boolean;
395396
* localAddress?: string;
396397
* localPort?: number;
397398
* lookup?: Function;
@@ -404,6 +405,7 @@ function request(...args) {
404405
* socketPath?: string;
405406
* timeout?: number;
406407
* signal?: AbortSignal;
408+
* uniqueHeaders?: Array;
407409
* } | string | URL} [options]
408410
* @param {Function} [cb]
409411
* @returns {ClientRequest}

0 commit comments

Comments
 (0)