Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for Chalin (0.18 sec)

  1. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  2. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. 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)
  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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  6. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. 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)
  8. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

      /**
       * Returns a cleaned chain for [chain].
       *
       * This method throws if the complete chain to a trusted CA certificate cannot be constructed.
       * This is unexpected unless the trust root index in this class has a different trust manager than
       * what was used to establish [chain].
       */
      @Throws(SSLPeerUnverifiedException::class)
      override fun clean(
        chain: List<Certificate>,
        hostname: String,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 9.1K bytes
    - Viewed (1)
  10. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (2)
Back to top