Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 246 for intercept (0.25 sec)

  1. 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
    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)
  2. 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
    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)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

       * as a **network interceptor**. It will strip the `Location` header of impacted responses to
       * prevent the redirect.
       *
       * ```
       * OkHttpClient client = client.newBuilder()
       *   .addNetworkInterceptor(new LegacyRedirectInterceptor())
       *   .build();
       * ```
       */
      internal class LegacyRedirectInterceptor : Interceptor {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/InterceptorTest.kt

          assertThat(expected.message).isEqualTo(
            "network interceptor $interceptor must call proceed() exactly once",
          )
        }
      }
    
      @Test
      fun networkInterceptorsCannotChangeServerAddress() {
        server.enqueue(
          MockResponse.Builder()
            .code(500)
            .build(),
        )
        val interceptor =
          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)
  5. docs/works_with_okhttp.md

     * [okhttp-signpost](https://github.com/pakerfeldt/okhttp-signpost): OAuth signing with signpost and OkHttp.
     * [okhttp-staleiferror-interceptor](https://github.com/PeelTechnologies/okhttp-staleiferror-interceptor/): serve stale responses when the server isn’t reachable.
     * [okhttp-stats](https://github.com/flipkart-incubator/okhttp-stats): Get stats like average network speed.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Jun 08 18:15:23 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Protocol.kt

       */
      H2_PRIOR_KNOWLEDGE("h2_prior_knowledge"),
    
      /**
       * QUIC (Quick UDP Internet Connection) is a new multiplexed and secure transport atop UDP,
       * designed from the ground up and optimized for HTTP/2 semantics. HTTP/1.1 semantics are layered
       * on HTTP/2.
       *
       * QUIC is not natively supported by OkHttp, but provided to allow a theoretical interceptor that
       * provides support.
       */
      QUIC("quic"),
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:33 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. CODE_OF_CONDUCT.md

        real-time medium.
    2.  If this fails, get a third party (e.g. a mutual friend, and/or someone with
        background on the issue, but not involved in the conflict) to intercede.
    3.  If you are still unable to resolve the conflict, and you believe it rises to
        harassment or another code of conduct violation, report it.
    
    ## Reporting Violations
    
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Fri Feb 05 18:43:16 GMT 2021
    - 5.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

                inFunction.countDown();
                try {
                  new CountDownLatch(1).await(); // wait for interrupt
                } catch (InterruptedException expected) {
                  // Ensure the thread's interrupt status is preserved.
                  Thread.currentThread().interrupt();
                  gotException.countDown();
                }
              }
            };
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

              latch.await();
              return;
            } catch (InterruptedException e) {
              interrupted = true;
            }
          }
        } finally {
          if (interrupted) {
            Thread.currentThread().interrupt();
          }
        }
      }
    
      /**
       * Invokes {@code latch.}{@link CountDownLatch#await(long, TimeUnit) await(timeout, unit)}
       * uninterruptibly.
       */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 14.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/LinearTransformation.java

        final double slope;
        final double yIntercept;
    
        @CheckForNull @LazyInit LinearTransformation inverse;
    
        RegularLinearTransformation(double slope, double yIntercept) {
          this.slope = slope;
          this.yIntercept = yIntercept;
          this.inverse = null; // to be lazily initialized
        }
    
        RegularLinearTransformation(double slope, double yIntercept, LinearTransformation inverse) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 9.6K bytes
    - Viewed (0)
Back to top