Package | Description |
---|---|
okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
okhttp3.dnsoverhttps |
A DNS over HTTPS implementation for OkHttp.
|
Modifier and Type | Field and Description |
---|---|
(package private) Dns |
Address.dns |
(package private) Dns |
OkHttpClient.dns |
(package private) Dns |
OkHttpClient.Builder.dns |
static Dns |
Dns.SYSTEM
A DNS that uses
InetAddress.getAllByName(java.lang.String) to ask the underlying operating system to
lookup IP addresses. |
Modifier and Type | Method and Description |
---|---|
Dns |
Address.dns()
Returns the service that will be used to resolve IP addresses for hostnames.
|
Dns |
OkHttpClient.dns() |
Modifier and Type | Method and Description |
---|---|
OkHttpClient.Builder |
OkHttpClient.Builder.dns(Dns dns)
Sets the DNS service used to lookup IP addresses for hostnames.
|
Constructor and Description |
---|
Address(java.lang.String uriHost,
int uriPort,
Dns dns,
javax.net.SocketFactory socketFactory,
javax.net.ssl.SSLSocketFactory sslSocketFactory,
javax.net.ssl.HostnameVerifier hostnameVerifier,
CertificatePinner certificatePinner,
Authenticator proxyAuthenticator,
java.net.Proxy proxy,
java.util.List<Protocol> protocols,
java.util.List<ConnectionSpec> connectionSpecs,
java.net.ProxySelector proxySelector) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
BootstrapDns
Internal Bootstrap DNS implementation for handling initial connection to DNS over HTTPS server.
|
class |
DnsOverHttps
DNS over HTTPS implementation.
|
Modifier and Type | Field and Description |
---|---|
(package private) Dns |
DnsOverHttps.Builder.systemDns |
Modifier and Type | Method and Description |
---|---|
private static Dns |
DnsOverHttps.buildBootstrapClient(DnsOverHttps.Builder builder) |
Modifier and Type | Method and Description |
---|---|
DnsOverHttps.Builder |
DnsOverHttps.Builder.systemDns(Dns systemDns) |