- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for allowed (0.23 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
} @Test fun responseCodeDisagreesWithHeaders() { server.enqueue( MockResponse( code = HttpURLConnection.HTTP_NO_CONTENT, body = "This body is not allowed!", ), ) assertFailsWith<IOException> { getResponse(newRequest("/")) }.also { expected -> assertThat(expected.message).isEqualTo("HTTP 204 had non-zero Content-Length: 25")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
server.enqueue( MockResponse.Builder() .addHeader("Allow: GET, HEAD") .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) .addHeader("Cache-Control: max-age=0") .body("A") .build(), ) server.enqueue( MockResponse.Builder() .addHeader("Allow: GET, HEAD, PUT") .code(HttpURLConnection.HTTP_NOT_MODIFIED)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0)