- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 49 for byteString (0.05 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt
} private fun MessageDeflater.deflate(byteString: ByteString): ByteString { val buffer = Buffer() buffer.write(byteString) deflate(buffer) return buffer.readByteString() } private fun MessageInflater.inflate(byteString: ByteString): ByteString { val buffer = Buffer() buffer.write(byteString) inflate(buffer) return buffer.readByteString() }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Sep 21 06:26:07 GMT 2025 - 6.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
withContext(Dispatchers.IO) { val sortedRules: SortedSet<ByteString> = TreeSet() val sortedExceptionRules: SortedSet<ByteString> = TreeSet() var totalRuleBytes = 0 var totalExceptionRuleBytes = 0 fileSystem.source(publicSuffixListDotDat).buffer().use { source -> while (!source.exhausted()) { var rule: ByteString = source.readUtf8LineStrict().toRule() ?: continue
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Aug 06 05:33:11 GMT 2025 - 6.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketWriter.kt
/** Send a ping with the supplied [payload]. */ @Throws(IOException::class) fun writePing(payload: ByteString) { writeControlFrame(OPCODE_CONTROL_PING, payload) } /** Send a pong with the supplied [payload]. */ @Throws(IOException::class) fun writePong(payload: ByteString) { writeControlFrame(OPCODE_CONTROL_PONG, payload) } /** * Send a close frame with optional code and reason.
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 6K bytes - Click Count (0) -
okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/ConfiguredPublicSuffixList.kt
*/ package okhttp3.internal.publicsuffix import okio.ByteString /** * An implementation of I/O for `PublicSuffixDatabase` by directly passing in ByteStrings. */ internal class ConfiguredPublicSuffixList : PublicSuffixList { override fun ensureLoaded() { } override var bytes: ByteString = ByteString.EMPTY override var exceptionBytes: ByteString = ByteString.EMPTYCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue May 27 22:00:49 GMT 2025 - 978 bytes - Click Count (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
import okhttp3.Protocol import okhttp3.Request import okhttp3.Response import okhttp3.ResponseBody.Companion.toResponseBody import okio.ByteString import okio.ByteString.Companion.EMPTY import okio.ByteString.Companion.decodeHex import okio.ByteString.Companion.encodeUtf8 import org.junit.jupiter.api.Test class BrotliInterceptorTest { val brotliInterceptor = CompressionInterceptor(Brotli, Gzip) @TestCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Aug 22 08:12:58 GMT 2025 - 4.4K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/BasePublicSuffixList.kt
// Guarded by this. override lateinit var bytes: ByteString override lateinit var exceptionBytes: ByteString private var readFailure: IOException? = null @Throws(IOException::class) private fun readTheList() { var publicSuffixListBytes: ByteString? var publicSuffixExceptionListBytes: ByteString? try { listSource().buffer().use { bufferedSource ->
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jul 28 07:33:49 GMT 2025 - 3.6K bytes - Click Count (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt
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 Dec 26 11:42:13 GMT 2025 - Last Modified: Thu May 29 20:09:10 GMT 2025 - 3.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixList.kt
* limitations under the License. */ package okhttp3.internal.publicsuffix import okio.ByteString /** * Basic I/O for `PublicSuffixDatabase.list` */ internal interface PublicSuffixList { fun ensureLoaded() val bytes: ByteString val exceptionBytes: ByteString companion object }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue May 27 22:00:49 GMT 2025 - 929 bytes - Click Count (0) -
okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt
assertThat(responseString).isEmpty() } private fun ByteString.zstdCompress(): ByteString { val result = Buffer() result.zstdCompress().buffer().use { it.write(this@zstdCompress) } return result.readByteString() } private fun ByteString.gzipCompress(): ByteString { val result = Buffer() (result as Sink).gzip().buffer().use {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Aug 01 06:04:22 GMT 2025 - 4.8K bytes - Click Count (1) -
mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt
import mockwebserver3.internal.RecordedRequest import mockwebserver3.internal.decodeRequestLine import okhttp3.Headers import okhttp3.Headers.Companion.headersOf import okio.Buffer import okio.ByteString import org.junit.jupiter.api.Test import org.junit.jupiter.api.Timeout @Timeout(30) class RecordedRequestTest { private val headers: Headers = Headers.EMPTY @Test fun testIPv4() { val socket =Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 02 20:36:00 GMT 2025 - 5.3K bytes - Click Count (0)