1
0
mirror of https://github.com/square/okhttp.git synced 2026-10-24 07:59:29 +03:00
Files
okhttp/okhttp-dnsoverhttps/api/okhttp-dnsoverhttps.api
Jesse Wilson d291c023c9 Enable in-memory caching in DnsOverHttps and AndroidDns (#9594)
The default cache size is 1,000, which is effectively unbounded
for mobile apps, which likely call a few dozen API servers, ad
networks, and analytics systems.

I don't expect DnsOverHttps to be deployed in other environments.
If so, it's possible this cache will be problematic, as even
10-second stale results can be problematic for server
environments. I'll put an appropriate warning about this in our
release notes.
2026-07-25 23:18:15 -04:00

36 lines
1.9 KiB
Plaintext

public final class okhttp3/dnsoverhttps/DnsOverHttps : okhttp3/Dns {
public static final field Companion Lokhttp3/dnsoverhttps/DnsOverHttps$Companion;
public static final field MAX_RESPONSE_SIZE I
public final fun cache ()Lokhttp3/DnsCache;
public final fun client ()Lokhttp3/OkHttpClient;
public final fun includeIPv6 ()Z
public final fun includeServiceMetadata ()Z
public fun lookup (Ljava/lang/String;)Ljava/util/List;
public fun newCall (Lokhttp3/Dns$Request;)Lokhttp3/Dns$Call;
public final fun post ()Z
public final fun resolvePrivateAddresses ()Z
public final fun resolvePublicAddresses ()Z
public final fun url ()Lokhttp3/HttpUrl;
}
public final class okhttp3/dnsoverhttps/DnsOverHttps$Builder {
public fun <init> ()V
public final fun bootstrapDnsHosts (Ljava/util/List;)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
public final fun bootstrapDnsHosts ([Ljava/net/InetAddress;)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
public final fun build ()Lokhttp3/dnsoverhttps/DnsOverHttps;
public final fun cache (Lokhttp3/DnsCache;)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
public final fun client (Lokhttp3/OkHttpClient;)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
public final fun includeIPv6 (Z)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
public final fun includeServiceMetadata (Z)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
public final fun post (Z)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
public final fun resolvePrivateAddresses (Z)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
public final fun resolvePublicAddresses (Z)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
public final fun systemDns (Lokhttp3/Dns;)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
public final fun url (Lokhttp3/HttpUrl;)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
}
public final class okhttp3/dnsoverhttps/DnsOverHttps$Companion {
public final fun getDNS_MESSAGE ()Lokhttp3/MediaType;
}