- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for 408 (0.14 sec)
-
okhttp/src/test/java/okhttp3/CallTest.kt
val response = client.newCall(request).execute() assertThat(response.code).isEqualTo(408) assertThat(response.body.string()).isEqualTo("You took too long!") } @Test fun maxClientRequestTimeoutRetries() { server.enqueue( MockResponse( code = 408, headers = headersOf("Connection", "Close"), body = "You took too long!",
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
return buildRedirectRequest(userResponse, method) } HTTP_CLIENT_TIMEOUT -> { // 408's are rare in practice, but some servers like HAProxy use this response code. The // spec says that we may repeat the request without modifications. Modern browsers also // repeat the request (even non-idempotent ones.)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 12.1K bytes - Viewed (4) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
"Expected HTTP 101 response but was '404 Not Found'", ) } @Test fun clientTimeoutClosesBody() { webServer.enqueue( MockResponse.Builder() .code(408) .build(), ) webServer.enqueue( MockResponse.Builder() .webSocketUpgrade(serverListener) .build(), ) val webSocket: WebSocket = newWebSocket()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 35.2K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/CacheTest.kt
if (responseCode == HttpURLConnection.HTTP_CLIENT_TIMEOUT) { // 408's are a bit of an outlier because we may repeat the request if we encounter this // response code. In this scenario, there are 2 responses: the initial 408 and then the 200 // because of the retry. We just want to ensure the initial 408 isn't cached. expectedResponseCode = 200 server.enqueue( MockResponse.Builder()
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)