mirror of
https://github.com/square/okhttp.git
synced 2025-07-31 05:04:26 +03:00
Remove DnsRecordCodec from our public API (#7113)
This commit is contained in:
@ -28,11 +28,3 @@ public final class okhttp3/dnsoverhttps/DnsOverHttps$Companion {
|
|||||||
public final fun getDNS_MESSAGE ()Lokhttp3/MediaType;
|
public final fun getDNS_MESSAGE ()Lokhttp3/MediaType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class okhttp3/dnsoverhttps/DnsRecordCodec {
|
|
||||||
public static final field INSTANCE Lokhttp3/dnsoverhttps/DnsRecordCodec;
|
|
||||||
public static final field TYPE_A I
|
|
||||||
public static final field TYPE_AAAA I
|
|
||||||
public final fun decodeAnswers (Ljava/lang/String;Lokio/ByteString;)Ljava/util/List;
|
|
||||||
public final fun encodeQuery (Ljava/lang/String;I)Lokio/ByteString;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import okio.utf8Size
|
|||||||
/**
|
/**
|
||||||
* Trivial Dns Encoder/Decoder, basically ripped from Netty full implementation.
|
* Trivial Dns Encoder/Decoder, basically ripped from Netty full implementation.
|
||||||
*/
|
*/
|
||||||
object DnsRecordCodec {
|
internal object DnsRecordCodec {
|
||||||
private const val SERVFAIL = 2
|
private const val SERVFAIL = 2
|
||||||
private const val NXDOMAIN = 3
|
private const val NXDOMAIN = 3
|
||||||
const val TYPE_A = 0x0001
|
const val TYPE_A = 0x0001
|
||||||
|
Reference in New Issue
Block a user