- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for decodeAnswers (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt
import java.net.UnknownHostException import kotlin.test.assertFailsWith import okhttp3.dnsoverhttps.DnsRecordCodec.TYPE_A import okhttp3.dnsoverhttps.DnsRecordCodec.TYPE_AAAA import okhttp3.dnsoverhttps.DnsRecordCodec.decodeAnswers import okio.ByteString.Companion.decodeHex import org.junit.jupiter.api.Test class DnsRecordCodecTest { @Test fun testGoogleDotComEncoding() { val encoded = encodeQuery("google.com", TYPE_A)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu May 29 20:09:10 GMT 2025 - 3.6K bytes - Click Count (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
"response size exceeds limit ($MAX_RESPONSE_SIZE bytes): ${body.contentLength()} bytes", ) } val responseBytes = body.source().readByteString() return DnsRecordCodec.decodeAnswers(hostname, responseBytes) } } private fun buildRequest( hostname: String, type: Int, ): Request = Request .Builder() .header("Accept", DNS_MESSAGE.toString())
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat May 10 11:15:14 GMT 2025 - 8.6K bytes - Click Count (0)