I was wondering if global installation needs to wrap just HTTP agent or also HTTPS as well?
const http = require('http');
const CacheableLookup = require('cacheable-lookup');
const cacheable = new CacheableLookup({
// Set any custom options here
});
cacheable.servers = [
// Put your DNS servers of choice here
];
// Configure this to be used by a single request:
http.get("http://example.com", {
lookup: cacheable.lookup
});
Hello,
I was wondering if global installation needs to wrap just HTTP agent or also HTTPS as well?
Essentially, I should do this:
or also this?