Package | Description |
---|---|
okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
Modifier and Type | Class and Description |
---|---|
class |
FakeDns |
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) |