Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withConnectTimeout (0.16 sec)

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

      }
    
      @Test
      fun connectTimeout() {
        val interceptor1 =
          Interceptor { chainA: Interceptor.Chain ->
            assertThat(chainA.connectTimeoutMillis()).isEqualTo(5000)
            val chainB = chainA.withConnectTimeout(100, TimeUnit.MILLISECONDS)
            assertThat(chainB.connectTimeoutMillis()).isEqualTo(100)
            chainB.proceed(chainA.request())
          }
        val interceptor2 =
          Interceptor { chain: Interceptor.Chain ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

          override fun connection(): Connection? = TODO()
    
          override fun call(): Call = TODO()
    
          override fun connectTimeoutMillis(): Int = TODO()
    
          override fun withConnectTimeout(
            timeout: Int,
            unit: TimeUnit,
          ): Interceptor.Chain = TODO()
    
          override fun readTimeoutMillis(): Int = TODO()
    
          override fun withReadTimeout(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
Back to top