Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 43 for useHttps (0.04 sec)

  1. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(server.protocols[0]).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE)
      }
    
      @Test
      fun https() {
        val handshakeCertificates = platform.localhostHandshakeCertificates()
        server.useHttps(handshakeCertificates.sslSocketFactory(), false)
        server.enqueue(MockResponse().setBody("abc"))
        val url = server.url("/")
        val connection = url.toUrl().openConnection() as HttpsURLConnection
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

      fun wsScheme() {
        assumeNotWindows()
        websocketScheme("ws")
      }
    
      @Test
      fun wsUppercaseScheme() {
        websocketScheme("WS")
      }
    
      @Test
      fun wssScheme() {
        webServer.useHttps(handshakeCertificates.sslSocketFactory())
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CallHandshakeTest.kt

            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
    
        defaultEnabledCipherSuites =
          handshakeCertificates.sslSocketFactory().defaultCipherSuites.toList()
        defaultSupportedCipherSuites =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server!!.useHttps(handshakeCertificates.sslSocketFactory())
      }
    }
    
    @Flaky // STDOUT logging enabled for test
    @Timeout(30)
    @Tag("Slow")
    class ConnectionListenerLegacyTest : ConnectionListenerTest() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        assertThat(server.protocols[0]).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE)
      }
    
      @Test
      fun https() {
        val handshakeCertificates = platform.localhostHandshakeCertificates()
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.enqueue(
          MockResponse
            .Builder()
            .body("abc")
            .build(),
        )
        val url = server.url("/")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt

        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      @RetryingTest(5)
      @Flaky
      fun testHeadAfterPut() {
        class ErringRequestBody : RequestBody() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

          localhostInsecureRequest()
        } finally {
          Security.removeProvider("GmsCore_OpenSSL")
          client.close()
        }
      }
    
      private fun localhostInsecureRequest() {
        server.useHttps(handshakeCertificates.sslSocketFactory())
    
        server.enqueue(MockResponse())
    
        val request = Request.Builder().url(server.url("/")).build()
    
        client.newCall(request).execute().use {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      private fun Call.cancelLater(delay: Duration) {
        thread(name = "canceler") {
          sleep(delay.inWholeMilliseconds)
          cancel()
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 18K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt

            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      /** A request body that slowly trickles bytes, expecting to not complete. */
      private object SlowRequestBody : RequestBody() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun toProxyAddress ()Ljava/net/Proxy;
    	public fun toString ()Ljava/lang/String;
    	public final fun url (Ljava/lang/String;)Lokhttp3/HttpUrl;
    	public final fun useHttps (Ljavax/net/ssl/SSLSocketFactory;Z)V
    }
    
    public final class okhttp3/mockwebserver/MockWebServer$Companion {
    }
    
    public final class okhttp3/mockwebserver/PushPromise {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
Back to top