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 8698255

Browse filesBrowse files
lpincaaddaleax
authored andcommitted
doc: add documentation for the defaultPort option
PR-URL: #26152 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 4df82f0 commit 8698255
Copy full SHA for 8698255

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,10 @@ changes:
19711971
* `family` {number} IP address family to use when resolving `host` or
19721972
`hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and
19731973
v6 will be used.
1974-
* `port` {number} Port of remote server. **Default:** `80`.
1974+
* `defaultPort` {number} Default port for the protocol. **Default:**
1975+
`agent.defaultPort` if an `Agent` is used, else `undefined`.
1976+
* `port` {number} Port of remote server. **Default:** `defaultPort` if set,
1977+
else `80`.
19751978
* `localAddress` {string} Local interface to bind for network connections.
19761979
* `socketPath` {string} Unix Domain Socket (cannot be used if one of `host`
19771980
or `port` is specified, those specify a TCP Socket).

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.