Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for useHttps (0.07 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            override fun createSocket(
              host: String,
              port: Int,
              localHost: InetAddress,
              localPort: Int,
            ): Socket? = null
          }
        if (useHttps) {
          server.useHttps(handshakeCertificates.sslSocketFactory())
          client =
            client.newBuilder()
              .sslSocketFactory(
                handshakeCertificates.sslSocketFactory(),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        noRecoverWhenRetryOnConnectionFailureIsFalse()
      }
    
      @Test
      fun tlsHandshakeFailure_noFallbackByDefault() {
        platform.assumeNotBouncyCastle()
    
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.enqueue(MockResponse(socketPolicy = FailHandshake))
        server.enqueue(MockResponse(body = "response that will never be received"))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(cache.writeAbortCount()).isEqualTo(0)
        assertThat(cache.requestCount()).isEqualTo(2)
        assertThat(cache.hitCount()).isEqualTo(1)
      }
    
      @Test
      fun secureResponseCaching() {
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
Back to top