- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for writeUtf8 (0.05 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
val sink1 = stream1.sink.buffer() val sink2 = stream2.sink.buffer() sink1.writeUtf8("abc") assertFailsWith<IOException> { sink2.writeUtf8("abc") sink2.flush() }.also { expected -> assertThat(expected.message).isEqualTo("stream was reset: REFUSED_STREAM") } sink1.writeUtf8("def") sink1.close() assertFailsWith<ConnectionShutdownException> {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 75.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
vararg bodyLines: String, ) { filesystem.write(journalFile) { writeUtf8( """ |$magic |$version |$appVersion |$valueCount |$blank | """.trimMargin(), ) for (line in bodyLines) { writeUtf8(line) writeUtf8("\n") } } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 75.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
override fun contentType(): MediaType? = null override fun writeTo(sink: BufferedSink) { try { Thread.sleep(requestBodyDelay) sink.writeUtf8("abc") } catch (e: InterruptedException) { throw InterruptedIOException() } } }, ).build(), )
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 60.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0)