From 5f2da5af420e46b44d8e142630d1763f1b0c2c4a Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sat, 13 Mar 2021 20:54:55 +0100 Subject: [PATCH] doc: add hints to http.request() options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/37745 Reviewed-By: Colin Ihrig Reviewed-By: Gerhard Stöbich Reviewed-By: Rich Trott Reviewed-By: Darshan Sen --- doc/api/http.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index 05f27e6f667ce6..dc24ff05278541 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2377,6 +2377,7 @@ changes: `hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and v6 will be used. * `headers` {Object} An object containing request headers. + * `hints` {number} Optional [`dns.lookup()` hints][]. * `host` {string} A domain name or IP address of the server to issue the request to. **Default:** `'localhost'`. * `hostname` {string} Alias for `host`. To support [`url.parse()`][], @@ -2687,6 +2688,7 @@ try { [`agent.getName()`]: #http_agent_getname_options [`destroy()`]: #http_agent_destroy [`dns.lookup()`]: dns.md#dns_dns_lookup_hostname_options_callback +[`dns.lookup()` hints]: dns.md#dns_supported_getaddrinfo_flags [`getHeader(name)`]: #http_request_getheader_name [`http.Agent`]: #http_class_http_agent [`http.ClientRequest`]: #http_class_http_clientrequest