Commit 6aa7101 Jungku Lee
authored
1 parent c935d4c commit 6aa7101 Copy full SHA for 6aa7101
File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ function createServer(opts, requestListener) {
76
76
* @property {string } [host] A domain name or IP address of the server to issue the request to.
77
77
* @property {string } [hostname] Alias for host.
78
78
* @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.
79
80
* @property {string } [localAddress] Local interface to bind for network connections.
80
81
* @property {number } [localPort] Local port to connect from.
81
82
* @property {Function } [lookup] Custom lookup function. Default: dns.lookup().
@@ -88,6 +89,7 @@ function createServer(opts, requestListener) {
88
89
* @property {AbortSignal } [signal] An AbortSignal that may be used to abort an ongoing request.
89
90
* @property {string } [socketPath] Unix domain socket.
90
91
* @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.
91
93
*/
92
94
93
95
/**
Original file line number Diff line number Diff line change @@ -392,6 +392,7 @@ function request(...args) {
392
392
* host?: string;
393
393
* hostname?: string;
394
394
* insecureHTTPParser?: boolean;
395
+ * joinDuplicateHeaders?: boolean;
395
396
* localAddress?: string;
396
397
* localPort?: number;
397
398
* lookup?: Function;
@@ -404,6 +405,7 @@ function request(...args) {
404
405
* socketPath?: string;
405
406
* timeout?: number;
406
407
* signal?: AbortSignal;
408
+ * uniqueHeaders?: Array;
407
409
* } | string | URL } [options]
408
410
* @param {Function } [cb]
409
411
* @returns {ClientRequest }
You can’t perform that action at this time.
0 commit comments