Skip to content

Commit 1e472e9

Browse files
committed
doc: add hints to http.request() options
1 parent 7296bcb commit 1e472e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/http.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2810,6 +2810,7 @@ changes:
28102810
`hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and
28112811
v6 will be used.
28122812
* `headers` {Object} An object containing request headers.
2813+
* `hints` {number} Optional [`dns.lookup()` hints][].
28132814
* `host` {string} A domain name or IP address of the server to issue the
28142815
request to. **Default:** `'localhost'`.
28152816
* `hostname` {string} Alias for `host`. To support [`url.parse()`][],
@@ -3126,6 +3127,7 @@ try {
31263127
[`agent.getName()`]: #http_agent_getname_options
31273128
[`destroy()`]: #http_agent_destroy
31283129
[`dns.lookup()`]: dns.md#dns_dns_lookup_hostname_options_callback
3130+
[`dns.lookup()` hints]: dns.md#dns_supported_getaddrinfo_flags
31293131
[`getHeader(name)`]: #http_request_getheader_name
31303132
[`http.Agent`]: #http_class_http_agent
31313133
[`http.ClientRequest`]: #http_class_http_clientrequest

0 commit comments

Comments
 (0)