Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6aa7101

Browse filesBrowse 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
Copy full SHA for 6aa7101

File tree

Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed
Open diff view settings
Collapse file

‎lib/http.js‎

Copy file name to clipboardExpand all lines: lib/http.js
+2Lines changed: 2 additions & 0 deletions
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
/**
Collapse file

‎lib/https.js‎

Copy file name to clipboardExpand all lines: lib/https.js
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.