- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for bytesClosesUnderlyingSource (1.41 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt
assertThat(bytes[1] and 0xff).isEqualTo(0xbb) assertThat(bytes[2] and 0xff).isEqualTo(0xbf) assertThat(String(bytes, 3, 5, StandardCharsets.UTF_8)).isEqualTo("hello") } @Test fun bytesClosesUnderlyingSource() { val closed = AtomicBoolean() val body: ResponseBody = object : ResponseBody() { override fun contentType(): MediaType? = null override fun contentLength(): Long = 5
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 12.4K bytes - Viewed (0)