diff options
author | Luigi Pinca <luigipinca@gmail.com> | 2019-11-10 18:52:18 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-11-13 08:57:36 +0100 |
commit | 5bd6f516d82d069ff8710b86108dedc333b2b580 (patch) | |
tree | a1140a4031d7e857d5151bc6c37c89c906c2587a /doc | |
parent | 0e964a7e6fe86de47de4ca21f464c47eaac256a8 (diff) | |
download | android-node-v8-5bd6f516d82d069ff8710b86108dedc333b2b580.tar.gz android-node-v8-5bd6f516d82d069ff8710b86108dedc333b2b580.tar.bz2 android-node-v8-5bd6f516d82d069ff8710b86108dedc333b2b580.zip |
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 <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/http.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/http.md b/doc/api/http.md index 81e07b482a..46450d8067 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2133,6 +2133,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. @@ -2312,6 +2313,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 |