Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CheckHandshake (0.42 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(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt

          }
        }
      }
    
      @Suppress("UNUSED_PARAMETER")
      private fun expectedFailure(
        className: String,
        cause: Throwable,
      ): Boolean =
        when (className) {
          "okhttp3.recipes.CheckHandshake" -> true // by design
          "okhttp3.recipes.RequestBodyCompression" -> true // expired token
          else -> false
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top