Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 246 for intercept (0.39 sec)

  1. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

       * {@code setUpRan} parameter is set true by the {@code setUp} that every test case is supposed to
       * have registered, and set false by the {@code tearDown}. We use a dynamic proxy to intercept all
       * of the {@code Map} method calls and check that {@code setUpRan} is true.
       */
      private static class CheckSetUpHashMapGenerator extends WrappedHashMapGenerator {
        private final AtomicBoolean setUpRan;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

    import okio.Source
    import okio.Timeout
    import okio.buffer
    
    /** Serves requests from the cache and writes responses to the cache. */
    class CacheInterceptor(internal val cache: Cache?) : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val call = chain.call()
        val cacheCandidate = cache?.get(chain.request().requestForCache())
    
        val now = System.currentTimeMillis()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

       * {@code setUpRan} parameter is set true by the {@code setUp} that every test case is supposed to
       * have registered, and set false by the {@code tearDown}. We use a dynamic proxy to intercept all
       * of the {@code Map} method calls and check that {@code setUpRan} is true.
       */
      private static class CheckSetUpHashMapGenerator extends WrappedHashMapGenerator {
        private final AtomicBoolean setUpRan;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  4. 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)
  5. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

     *
     * The format of the logs created by this class should not be considered stable and may
     * change slightly between releases. If you need a stable logging format, use your own interceptor.
     */
    class HttpLoggingInterceptor
      @JvmOverloads
      constructor(
        private val logger: Logger = Logger.DEFAULT,
      ) : Interceptor {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  6. 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)
  7. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

      private var extraNetworkInterceptor: Interceptor? = null
    
      private fun setLevel(level: Level) {
        networkInterceptor.setLevel(level)
        applicationInterceptor.setLevel(level)
      }
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
        client =
          OkHttpClient.Builder()
            .addNetworkInterceptor(
              Interceptor { chain ->
                when {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  8. 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)
  9. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/http/BridgeInterceptor;-><init>(Lokhttp3/CookieJar;)V
    HSPLokhttp3/internal/http/BridgeInterceptor;->intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
    HSPLokhttp3/internal/http/CallServerInterceptor;-><init>(Z)V
    HSPLokhttp3/internal/http/CallServerInterceptor;->intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
    HSPLokhttp3/internal/http/HttpHeaders;-><clinit>()V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        builder = builder.encodedFragment("")
        val httpUrl: HttpUrl = builder.build()
      }
    
      @Test
      fun interceptor() {
        var interceptor: Interceptor = Interceptor { TODO() }
        interceptor = Interceptor { it: Interceptor.Chain -> TODO() }
      }
    
      @Test
      fun interceptorChain() {
        val chain: Interceptor.Chain = newInterceptorChain()
      }
    
      @Test
      fun handshakeCertificates() {
    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