Skip to content

Commit 5f2da5a

Browse files
lpincatargos
authored andcommittedMay 1, 2021
doc: add hints to http.request() options
PR-URL: #37745 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent b5c5bd1 commit 5f2da5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎doc/api/http.md

+2
Original file line numberDiff line numberDiff line change
@@ -2377,6 +2377,7 @@ changes:
23772377
`hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and
23782378
v6 will be used.
23792379
* `headers` {Object} An object containing request headers.
2380+
* `hints` {number} Optional [`dns.lookup()` hints][].
23802381
* `host` {string} A domain name or IP address of the server to issue the
23812382
request to. **Default:** `'localhost'`.
23822383
* `hostname` {string} Alias for `host`. To support [`url.parse()`][],
@@ -2687,6 +2688,7 @@ try {
26872688
[`agent.getName()`]: #http_agent_getname_options
26882689
[`destroy()`]: #http_agent_destroy
26892690
[`dns.lookup()`]: dns.md#dns_dns_lookup_hostname_options_callback
2691+
[`dns.lookup()` hints]: dns.md#dns_supported_getaddrinfo_flags
26902692
[`getHeader(name)`]: #http_request_getheader_name
26912693
[`http.Agent`]: #http_class_http_agent
26922694
[`http.ClientRequest`]: #http_class_http_clientrequest

0 commit comments

Comments
 (0)
Please sign in to comment.