Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for Chalin (0.31 sec)

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

         *     chain.proceed(chain.request())
         * }
         * ```
         */
        inline operator fun invoke(crossinline block: (chain: Chain) -> Response): Interceptor = Interceptor { block(it) }
      }
    
      interface Chain {
        fun request(): Request
    
        @Throws(IOException::class)
        fun proceed(request: Request): Response
    
        /**
    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-brotli/src/main/kotlin/okhttp3/brotli/BrotliInterceptor.kt

      override fun intercept(chain: Interceptor.Chain): Response {
        return if (chain.request().header("Accept-Encoding") == null) {
          val request =
            chain.request().newBuilder()
              .header("Accept-Encoding", "br,gzip")
              .build()
    
          val response = chain.proceed(request)
    
          uncompress(response)
        } else {
          chain.proceed(chain.request())
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

          // held
          chain = segment.newEntry(key, cache.hash(key), chain);
          if (i == 0) {
            head = chain;
          }
        }
      }
    
      @SuppressWarnings("GuardedBy")
      @Benchmark
      int time(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

          chain[0] = heldCertificate.certificate
          intermediates.copyInto(chain, 1)
          keyStore.setKeyEntry("private", heldCertificate.keyPair.private, password, chain)
        }
    
        val factory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm())
        factory.init(keyStore, password)
        val result = factory.keyManagers!!
        check(result.size == 1 && result[0] is X509KeyManager) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/query/QueryProcessor.java

            FilterChain chain = createDefaultFilterChain();
            for (final Filter element : filterList) {
                chain = appendFilterChain(element, chain);
            }
            filterChain = chain;
        }
    
        protected FilterChain appendFilterChain(final Filter filter, final FilterChain chain) {
            return (context, query, boost) -> filter.execute(context, query, boost, chain);
        }
    
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

        @Override public Response intercept(Chain chain) throws IOException {
          for (Certificate certificate : chain.connection().handshake().peerCertificates()) {
            String pin = CertificatePinner.pin(certificate);
            if (denylist.contains(pin)) {
              throw new IOException("Denylisted peer certificate: " + pin);
            }
          }
          return chain.proceed(chain.request());
        }
      };
    
    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)
  7. okhttp-tls/README.md

    OdHOim9+
    -----END PRIVATE KEY-----
    ```
    
    Recommendations
    ---------------
    
    Typically servers need a held certificate plus a chain of intermediates. Servers only need the
    private key for their own certificate. The chain served by a server doesn't need the root
    certificate.
    
    The trusted roots don't need to be the same for client and server when using client authentication.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 9.1K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

     * response.
     */
    class BridgeInterceptor(private val cookieJar: CookieJar) : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val userRequest = chain.request()
        val requestBuilder = userRequest.newBuilder()
    
        val body = userRequest.body
        if (body != null) {
          val contentType = body.contentType()
    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 (2)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/UppercaseResponseInterceptor.kt

    import java.io.IOException
    import okhttp3.Interceptor.Chain
    import okio.Buffer
    import okio.BufferedSource
    import okio.ForwardingSource
    import okio.buffer
    
    /** Rewrites the response body returned from the server to be all uppercase.  */
    class UppercaseResponseInterceptor : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Chain): Response {
        return uppercaseResponse(chain.proceed(chain.request()))
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/auth/AuthenticationManager.java

        }
    
        public User load(final User user) {
            User u = user;
            for (final AuthenticationChain chain : chains) {
                u = chain.load(u);
            }
            return u;
        }
    
        public void addChain(final AuthenticationChain chain) {
            chains = ArrayUtils.addAll(chains, chain);
        }
    
        protected StreamOf<AuthenticationChain> chains() {
            return stream(chains);
        }
    
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top