summaryrefslogtreecommitdiff
path: root/doc/api/http.md
diff options
context:
space:
mode:
authorLuigi Pinca <luigipinca@gmail.com>2019-02-16 18:56:20 +0100
committerLuigi Pinca <luigipinca@gmail.com>2019-03-02 07:50:44 +0100
commitf42bf397bdb16c057eb0328b4c5bd019c45b5431 (patch)
tree8445c344f454949928d6046644f41700c1419f06 /doc/api/http.md
parent453ed053432e0c1ae34457e5c364b7091af2615e (diff)
downloadandroid-node-v8-f42bf397bdb16c057eb0328b4c5bd019c45b5431.tar.gz
android-node-v8-f42bf397bdb16c057eb0328b4c5bd019c45b5431.tar.bz2
android-node-v8-f42bf397bdb16c057eb0328b4c5bd019c45b5431.zip
doc: add documentation for the defaultPort option
PR-URL: https://github.com/nodejs/node/pull/26152 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/http.md')
-rw-r--r--doc/api/http.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api/http.md b/doc/api/http.md
index 57ba9302b8..4f408cc7d6 100644
--- a/doc/api/http.md
+++ b/doc/api/http.md
@@ -1977,7 +1977,10 @@ changes:
* `family` {number} IP address family to use when resolving `host` or
`hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and
v6 will be used.
- * `port` {number} Port of remote server. **Default:** `80`.
+ * `defaultPort` {number} Default port for the protocol. **Default:**
+ `agent.defaultPort` if an `Agent` is used, else `undefined`.
+ * `port` {number} Port of remote server. **Default:** `defaultPort` if set,
+ else `80`.
* `localAddress` {string} Local interface to bind for network connections.
* `socketPath` {string} Unix Domain Socket (cannot be used if one of `host`
or `port` is specified, those specify a TCP Socket).