Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Interceptor (0.11 sec)

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

        fun addNetworkInterceptor(interceptor: Interceptor) =
          apply {
            networkInterceptors += interceptor
          }
    
        @JvmName("-addNetworkInterceptor") // Prefix with '-' to prevent ambiguous overloads from Java.
        inline fun addNetworkInterceptor(crossinline block: (chain: Interceptor.Chain) -> Response) =
          addNetworkInterceptor(Interceptor { chain -> block(chain) })
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/EventListenerTest.kt

        // Create a client with artificial delays.
        client =
          client.newBuilder()
            .addInterceptor(
              Interceptor { chain: Interceptor.Chain ->
                try {
                  Thread.sleep(applicationInterceptorDelay)
                  return@Interceptor chain.proceed(chain.request())
                } catch (e: InterruptedException) {
                  throw InterruptedIOException()
                }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  3. okhttp/api/okhttp.api

    	public final fun parse (Ljava/lang/String;)Lokhttp3/HttpUrl;
    }
    
    public abstract interface class okhttp3/Interceptor {
    	public static final field Companion Lokhttp3/Interceptor$Companion;
    	public abstract fun intercept (Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
    }
    
    public abstract interface class okhttp3/Interceptor$Chain {
    	public abstract fun call ()Lokhttp3/Call;
    	public abstract fun connectTimeoutMillis ()I
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_3x.md

    
    ## Version 3.14.1
    
    _2019-04-10_
    
     *  Fix: Don't crash when an interceptor retries when there are no more routes. This was an
        edge-case regression introduced with the events cleanup in 3.14.0.
    
     *  Fix: Provide actionable advice when the exchange is non-null. Prior to 3.14, OkHttp would
        silently leak connections when an interceptor retries without closing the response body. With
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        )
        server.enqueue(MockResponse(body = "DEF"))
        val client2 =
          client.newBuilder()
            .addNetworkInterceptor(
              object : Interceptor {
                var executedCall = false
    
                override fun intercept(chain: Interceptor.Chain): Response {
                  if (!executedCall) {
                    // At this point, we have a healthy HTTP/2 connection. This call will trigger the
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  6. docs/assets/images/interceptors@2x.png

    interceptors@2x.png...
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 83.7K bytes
    - Viewed (0)
Back to top