Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 408 (0.01 sec)

  1. okhttp/src/jvmTest/kotlin/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
            .Builder()
            .code(408)
            .addHeader("Connection", "Close")
            .body("You took too long!")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
Back to top