- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for zeroStatusCodeIsValid (2.36 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/ResponseCommonTest.kt
} @Test fun negativeStatusCodeThrowsIllegalStateException() { assertFailsWith<IllegalStateException> { newResponse(responseBody("set status code -1"), -1) } } @Test fun zeroStatusCodeIsValid() { val response = newResponse(responseBody("set status code 0"), 0) assertThat(response.code).isEqualTo(0) } @Test fun defaultResponseBodyIsEmpty() { val response = Response
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.6K bytes - Viewed (0)