From 671e028f27ec96cc22cc76fa31fdcd8f16b7c33d Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sun, 10 Nov 2019 18:52:18 +0100 Subject: [PATCH] doc: add lookup to http.request() options Add documentation for the `lookup` option. PR-URL: https://github.com/nodejs/node/pull/30353 Fixes: https://github.com/nodejs/node/issues/30171 Reviewed-By: David Carlier Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: Anto Aravinth Reviewed-By: James M Snell --- doc/api/http.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/http.md b/doc/api/http.md index 07782e1d873dab..0bb6e21e9f1925 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2065,6 +2065,7 @@ changes: * `hostname` {string} Alias for `host`. To support [`url.parse()`][], `hostname` will be used if both `host` and `hostname` are specified. * `localAddress` {string} Local interface to bind for network connections. + * `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][]. * `method` {string} A string specifying the HTTP request method. **Default:** `'GET'`. * `path` {string} Request path. Should include query string if any. @@ -2227,6 +2228,7 @@ not abort the request or do anything besides add a `'timeout'` event. [`agent.createConnection()`]: #http_agent_createconnection_options_callback [`agent.getName()`]: #http_agent_getname_options [`destroy()`]: #http_agent_destroy +[`dns.lookup()`]: dns.html#dns_dns_lookup_hostname_options_callback [`'finish'`]: #http_event_finish [`getHeader(name)`]: #http_request_getheader_name [`http.Agent`]: #http_class_http_agent