okhttp-dnsoverhttps / okhttp3.dnsoverhttps / DnsOverHttps

DnsOverHttps

class DnsOverHttps : Dns

DNS over HTTPS implementation[doh_spec].

Warning: This is a non-final API.

As of OkHttp 3.14, this feature is an unstable preview: the API is subject to change, and the implementation is incomplete. We expect that OkHttp 4.0 or 4.1 will finalize this API. Until then, expect API and behavior changes when you update your OkHttp dependency.**

Types

Builder

class Builder

Functions

client

fun client(): OkHttpClient

includeIPv6

fun includeIPv6(): Boolean

lookup

fun lookup(hostname: String): List<InetAddress>

post

fun post(): Boolean

resolvePrivateAddresses

fun resolvePrivateAddresses(): Boolean

resolvePublicAddresses

fun resolvePublicAddresses(): Boolean

url

fun url(): HttpUrl

Companion Object Properties

DNS_MESSAGE

val DNS_MESSAGE: MediaType

MAX_RESPONSE_SIZE

const val MAX_RESPONSE_SIZE: Int