Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 26 for localhostHandshakeCertificates (0.88 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt

      val platform = PlatformRule()
    
      @RegisterExtension
      @JvmField
      var clientTestRule = OkHttpClientTestRule()
    
      private val eventRecorder = EventRecorder()
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      private var client =
        clientTestRule
          .newClientBuilder()
          .eventListenerFactory(clientTestRule.wrap(eventRecorder))
          .build()
    
      @StartStop
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 11:54:15 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

      @RegisterExtension
      val clientTestRule: OkHttpClientTestRule = OkHttpClientTestRule()
    
      @StartStop
      private val server = MockWebServer()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private var client: OkHttpClient = clientTestRule.newClient()
    
      @Test
      fun connectionsAreReused() {
        server.enqueue(MockResponse(body = "a"))
        server.enqueue(MockResponse(body = "b"))
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.3K bytes
    - Click Count (1)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

      }
    
      enum class ConnectionType {
        H2,
        HTTPS,
        HTTP,
      }
    
      @JvmField @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      private lateinit var server: MockWebServer
      private lateinit var client: OkHttpClient
    
      val eventRecorder = EventRecorder()
    
      @BeforeEach
      fun setUp() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

              .protocols(listOf(protocol, Protocol.HTTP_1_1))
              .build()
          server.protocols = client.protocols
        }
      }
    
      private fun enableTls() {
        val handshakeCertificates = platform.localhostHandshakeCertificates()
        client =
          client
            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).build()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 18.8K bytes
    - Click Count (0)
  5. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(server.protocols.size).isEqualTo(1)
        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("/")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 03 13:16:34 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

      @RegisterExtension
      var testLogHandler = TestLogHandler(OkHttpClient::class.java)
    
      @StartStop
      private val webServer = MockWebServer()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private val clientListener = WebSocketRecorder("client")
      private val serverListener = WebSocketRecorder("server")
      private val random = Random(0)
      private var client =
        clientTestRule
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt

      @StartStop
      private val server = MockWebServer()
    
      // Can't use test instance with overrides
      private var client = OkHttpClient.Builder().build()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      /**
       * Test that we can override in a Application Interceptor, purely by seeing that the chain reports
       * the override in a Network Interceptor.
       */
      @Test
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

      var clientTestRule = OkHttpClientTestRule()
    
      @StartStop
      private val server = MockWebServer()
    
      private var eventRecorder = EventRecorder()
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private var client =
        clientTestRule
          .newClientBuilder()
          .eventListenerFactory(clientTestRule.wrap(eventRecorder))
          .build()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 25.8K bytes
    - Click Count (0)
  9. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        assertThat(server.protocols.size).isEqualTo(1)
        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(),
        )
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Aug 03 22:38:00 GMT 2025
    - 28K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/HostnameVerifierTest.kt

        // Since this is public API, okhttp3.internal.tls.OkHostnameVerifier.verify is also
        assertThat(verifier).isInstanceOf<OkHostnameVerifier>()
        val handshakeCertificates = platform.localhostHandshakeCertificates()
        val session = handshakeCertificates.sslContext().createSSLEngine().session
        assertThat(localVerifier.verify("\uD83D\uDCA9.com", session)).isFalse()
      }
    
      @Test fun verifyAsIpAddress() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 40.4K bytes
    - Click Count (0)
Back to Top