We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4df82f0 commit 8698255Copy full SHA for 8698255
doc/api/http.md
@@ -1971,7 +1971,10 @@ changes:
1971
* `family` {number} IP address family to use when resolving `host` or
1972
`hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and
1973
v6 will be used.
1974
- * `port` {number} Port of remote server. **Default:** `80`.
+ * `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`.
1978
* `localAddress` {string} Local interface to bind for network connections.
1979
* `socketPath` {string} Unix Domain Socket (cannot be used if one of `host`
1980
or `port` is specified, those specify a TCP Socket).
0 commit comments