Skip to content

Commit 3710857

Browse files
lpincadanielleadams
authored andcommitted
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 1b53087 commit 3710857

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
@@ -2786,6 +2786,7 @@ changes:
27862786
`hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and
27872787
v6 will be used.
27882788
* `headers` {Object} An object containing request headers.
2789+
* `hints` {number} Optional [`dns.lookup()` hints][].
27892790
* `host` {string} A domain name or IP address of the server to issue the
27902791
request to. **Default:** `'localhost'`.
27912792
* `hostname` {string} Alias for `host`. To support [`url.parse()`][],
@@ -3102,6 +3103,7 @@ try {
31023103
[`agent.getName()`]: #http_agent_getname_options
31033104
[`destroy()`]: #http_agent_destroy
31043105
[`dns.lookup()`]: dns.md#dns_dns_lookup_hostname_options_callback
3106+
[`dns.lookup()` hints]: dns.md#dns_supported_getaddrinfo_flags
31053107
[`getHeader(name)`]: #http_request_getheader_name
31063108
[`http.Agent`]: #http_class_http_agent
31073109
[`http.ClientRequest`]: #http_class_http_clientrequest

0 commit comments

Comments
 (0)