GeezerVison is showing github.com — doc: add hints to http.request() options · nodejs/node@5f2da5a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/http.md +2Lines changed: 2 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2377,6 +2377,7 @@ changes: |
2377 | 2377 | `hostname`. Valid values are `4` or `6`. When unspecified, both IP v4 and |
2378 | 2378 | v6 will be used. |
2379 | 2379 | * `headers` {Object} An object containing request headers. |
| 2380 | + * `hints` {number} Optional [`dns.lookup()` hints][]. |
2380 | 2381 | * `host` {string} A domain name or IP address of the server to issue the |
2381 | 2382 | request to. **Default:** `'localhost'`. |
2382 | 2383 | * `hostname` {string} Alias for `host`. To support [`url.parse()`][], |
@@ -2687,6 +2688,7 @@ try { |
2687 | 2688 | [`agent.getName()`]: #http_agent_getname_options |
2688 | 2689 | [`destroy()`]: #http_agent_destroy |
2689 | 2690 | [`dns.lookup()`]: dns.md#dns_dns_lookup_hostname_options_callback |
| 2691 | +[`dns.lookup()` hints]: dns.md#dns_supported_getaddrinfo_flags |
2690 | 2692 | [`getHeader(name)`]: #http_request_getheader_name |
2691 | 2693 | [`http.Agent`]: #http_class_http_agent |
2692 | 2694 | [`http.ClientRequest`]: #http_class_http_clientrequest |
|