Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for intercept (0.16 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

    import java.util.Collections;
    import java.util.Set;
    import okhttp3.CertificatePinner;
    import okhttp3.Interceptor;
    import okhttp3.OkHttpClient;
    import okhttp3.Request;
    import okhttp3.Response;
    
    public final class CheckHandshake {
      /** Rejects otherwise-trusted certificates. */
      private static final Interceptor CHECK_HANDSHAKE_INTERCEPTOR = new Interceptor() {
        final Set<String> denylist = Collections.singleton(
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

    import okhttp3.internal.withSuppressed
    
    /**
     * This interceptor recovers from failures and follows redirects as necessary. It may throw an
     * [IOException] if the call was canceled.
     */
    class RetryAndFollowUpInterceptor(private val client: OkHttpClient) : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val realChain = chain as RealInterceptorChain
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  3. cni/pkg/plugin/plugin_test.go

        },
        "log_level": "debug",
        "cni_event_address": "%s",
        "ambient_enabled": %t,
        "kubernetes": {
            "k8s_api_root": "APIRoot",
            "kubeconfig": "testK8sConfig",
    		"intercept_type": "%s",
            "node_name": "testNodeName",
            "exclude_namespaces": ["testExcludeNS"],
            "cni_bin_dir": "/testDirectory"
        }
    }`
    
    type mockInterceptRuleMgr struct {
    	lastRedirect []*Redirect
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  4. cni/pkg/iptables/iptables.go

    	iptablesBuilder.AppendRule(
    		iptableslog.UndefinedCommand, ChainInpodOutput, iptablesconstants.NAT,
    		"-d", hostProbeSNAT.String(),
    		"-p", "tcp",
    		"-m", "tcp",
    		"-j", "ACCEPT",
    	)
    
    	// prevent intercept traffic from app ==> app by pod ip
    	iptablesBuilder.AppendVersionedRule("127.0.0.1/32", "::1/128",
    		iptableslog.UndefinedCommand, ChainInpodPrerouting, iptablesconstants.MANGLE,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K 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
    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)
  6. 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)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

    import java.util.concurrent.atomic.AtomicInteger
    import java.util.concurrent.locks.ReentrantLock
    import okhttp3.Call
    import okhttp3.Callback
    import okhttp3.EventListener
    import okhttp3.Interceptor
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.internal.assertHeld
    import okhttp3.internal.assertNotHeld
    import okhttp3.internal.assertThreadDoesntHoldLock
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  8. settings.gradle.kts

    include(":samples:simple-client")
    include(":samples:slack")
    include(":samples:static-server")
    include(":samples:tlssurvey")
    include(":samples:unixdomainsockets")
    include(":container-tests")
    
    project(":okhttp-logging-interceptor").name = "logging-interceptor"
    
    val androidHome = System.getenv("ANDROID_HOME")
    val localProperties = Properties().apply {
      val file = File("local.properties")
      if (file.exists()) {
        load(file.inputStream())
      }
    }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Apr 14 14:24:05 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       *   <li>if the thread was interrupted before the SequentialExecutor's worker begins execution,
       *       the interrupt will be restored to the thread after it completes so that its {@code
       *       delegate} Executor may process the interrupt.
       *   <li>subtasks are run with the thread uninterrupted and interrupts received during execution
       *       of a task are ignored.
       * </ol>
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_4x.md

        behavior is now consistent with [RFC 7231][rfc_7231_647], which is newer than OkHttp itself.
        If you want this update with the old behavior use [this interceptor][legacy_interceptor].
    
     *  Fix: Don't crash decompressing web sockets messages. We had a bug where we assumed deflated
        bytes in would always yield deflated bytes out and this isn't always the case!
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
Back to top