Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 750 (0.15 sec)

  1. okhttp/src/test/java/okhttp3/CallTest.kt

      }
    
      @Test
      fun timeoutsUpdatedOnReusedConnections() {
        server.enqueue(MockResponse(body = "abc"))
        server.enqueue(
          MockResponse.Builder()
            .body("def")
            .throttleBody(1, 750, TimeUnit.MILLISECONDS)
            .build(),
        )
    
        // First request: time out after 1s.
        client =
          client.newBuilder()
            .readTimeout(Duration.ofSeconds(1))
            .build()
    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)
  2. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

            .pingInterval(Duration.ofMillis(500))
            .build()
    
        // Delay the response to give 1 ping enough time to be sent and replied to.
        server.enqueue(
          MockResponse.Builder()
            .bodyDelay(750, TimeUnit.MILLISECONDS)
            .body("ABC")
            .build(),
        )
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
Back to top