Skip to content

Commit

Permalink
Add lookup option documentation (#1483)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
Giotino and sindresorhus authored Oct 5, 2020
1 parent c31366b commit 3bf3e3b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,15 @@ await got('https://api6.ipify.org', {
});
```

###### lookup

Type: `Function`\
Default: [`dns.lookup`](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback)

Custom DNS resolution logic.

The function signature is the same as [`dns.lookup`](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback).

###### request

Type: `Function`\
Expand Down

0 comments on commit 3bf3e3b

Please sign in to comment.