Skip to content

Commit 5bd6f51

Browse files
lpincadanbev
authored andcommitted
doc: add lookup to http.request() options
Add documentation for the `lookup` option. PR-URL: #30353 Fixes: #30171 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 0e964a7 commit 5bd6f51

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
@@ -2133,6 +2133,7 @@ changes:
21332133
* `hostname` {string} Alias for `host`. To support [`url.parse()`][],
21342134
`hostname` will be used if both `host` and `hostname` are specified.
21352135
* `localAddress` {string} Local interface to bind for network connections.
2136+
* `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][].
21362137
* `method` {string} A string specifying the HTTP request method. **Default:**
21372138
`'GET'`.
21382139
* `path` {string} Request path. Should include query string if any.
@@ -2312,6 +2313,7 @@ not abort the request or do anything besides add a `'timeout'` event.
23122313
[`agent.createConnection()`]: #http_agent_createconnection_options_callback
23132314
[`agent.getName()`]: #http_agent_getname_options
23142315
[`destroy()`]: #http_agent_destroy
2316+
[`dns.lookup()`]: dns.html#dns_dns_lookup_hostname_options_callback
23152317
[`'finish'`]: #http_event_finish
23162318
[`getHeader(name)`]: #http_request_getheader_name
23172319
[`http.Agent`]: #http_class_http_agent

0 commit comments

Comments
 (0)