- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for cannotGzipWithoutABody (0.07 seconds)
-
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 {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 24.6K bytes - Click Count (0)