- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for cannotGzipWithoutABody (0.1 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt
GzipSource(requestBodyBytes).use { it.buffer().readUtf8() } assertThat(decompressedRequestBody).isEqualTo("This is the original message") } @Test fun cannotGzipWithoutABody() { assertFailsWith<IllegalStateException> { Request .Builder() .url("https://square.com/") .gzip() .build() }.also {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 24 11:36:14 UTC 2025 - 24.4K bytes - Viewed (0)