Skip to content

Commit 8698255

Browse files
lpincaaddaleax
authored andcommitted
doc: add documentation for the defaultPort option
PR-URL: #26152 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 4df82f0 commit 8698255

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/api/http.md

+4-1
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)