Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for withReadTimeout (0.22 sec)

  1. okhttp/src/main/kotlin/okhttp3/Interceptor.kt

        fun call(): Call
    
        fun connectTimeoutMillis(): Int
    
        fun withConnectTimeout(
          timeout: Int,
          unit: TimeUnit,
        ): Chain
    
        fun readTimeoutMillis(): Int
    
        fun withReadTimeout(
          timeout: Int,
          unit: TimeUnit,
        ): Chain
    
        fun writeTimeoutMillis(): Int
    
        fun withWriteTimeout(
          timeout: Int,
          unit: TimeUnit,
        ): Chain
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

        return copy(connectTimeoutMillis = checkDuration("connectTimeout", timeout.toLong(), unit))
      }
    
      override fun readTimeoutMillis(): Int = readTimeoutMillis
    
      override fun withReadTimeout(
        timeout: Int,
        unit: TimeUnit,
      ): Interceptor.Chain {
        check(exchange == null) { "Timeouts can't be adjusted in a network interceptor" }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/InterceptorTest.kt

      }
    
      @Test
      fun chainWithReadTimeout() {
        val interceptor1 =
          Interceptor { chainA: Interceptor.Chain ->
            assertThat(chainA.readTimeoutMillis()).isEqualTo(5000)
            val chainB = chainA.withReadTimeout(100, TimeUnit.MILLISECONDS)
            assertThat(chainB.readTimeoutMillis()).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)
  4. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

          override fun withConnectTimeout(
            timeout: Int,
            unit: TimeUnit,
          ): Interceptor.Chain = TODO()
    
          override fun readTimeoutMillis(): Int = TODO()
    
          override fun withReadTimeout(
            timeout: Int,
            unit: TimeUnit,
          ): Interceptor.Chain = TODO()
    
          override fun writeTimeoutMillis(): Int = TODO()
    
          override fun withWriteTimeout(
    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)
  5. okhttp/api/okhttp.api

    	public abstract fun readTimeoutMillis ()I
    	public abstract fun request ()Lokhttp3/Request;
    	public abstract fun withConnectTimeout (ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain;
    	public abstract fun withReadTimeout (ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain;
    	public abstract fun withWriteTimeout (ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain;
    	public abstract fun writeTimeoutMillis ()I
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
Back to top