| Modifier and Type | Field | Description |
|---|---|---|
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 | Description |
|---|---|---|
Dns |
Address.dns() |
Returns the service that will be used to resolve IP addresses for hostnames.
|
Dns |
OkHttpClient.dns() |
| Modifier and Type | Method | Description |
|---|---|---|
OkHttpClient.Builder |
OkHttpClient.Builder.dns(Dns dns) |
Sets the DNS service used to lookup IP addresses for hostnames.
|
| Constructor | Description |
|---|---|
Address(String uriHost,
int uriPort,
Dns dns,
SocketFactory socketFactory,
SSLSocketFactory sslSocketFactory,
HostnameVerifier hostnameVerifier,
CertificatePinner certificatePinner,
Authenticator proxyAuthenticator,
Proxy proxy,
List<Protocol> protocols,
List<ConnectionSpec> connectionSpecs,
ProxySelector proxySelector) |
Copyright © 2020. All rights reserved.