dnsResolver
Specifies the DnsResolver used by the Apache5 connection manager to look up IP addresses for hostnames. When null, Apache HttpClient's default resolver is used.
Set this to inject a custom resolver, for example to enable DNS-over-HTTPS or to override host resolution in tests:
install(Apache5) {
engine {
dnsResolver = SystemDefaultDnsResolver.INSTANCE
}
}Content copied to clipboard