We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use dns-lookup-cache with axios?
The text was updated successfully, but these errors were encountered:
Same question. Axios uses http module not request or direct dns lookup so not sure if this library will help?
Sorry, something went wrong.
Hello, I'm wrapping axios into my own HTTPClient wrapper, but I guess you can already tell by code how to adapt it to your case:
`
const { lookup } = require("dns-lookup-cache"); let httpsAgent = new https.Agent({ keepAlive: true, lookup: lookup });
this.instance = axios.create({ baseURL, httpsAgent: httpsAgent, });
Edit: I can't use code snippet here lol :D
No branches or pull requests
How to use dns-lookup-cache with axios?
The text was updated successfully, but these errors were encountered: