Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 43 for useHttps (0.04 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

              serverSocket.receiveBufferSize = SOCKET_BUFFER_SIZE
              return serverSocket
            }
          }
        if (connectionType != HTTP) {
          server.useHttps(handshakeCertificates.sslSocketFactory())
        }
        server.start()
    
        client =
          clientTestRule
            .newClientBuilder()
            .socketFactory(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .protocols(protocols.toList())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.protocols = client.protocols
      }
    
      private fun assertConnectionReused(vararg requests: Request?) {
        for (i in requests.indices) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 12.2K bytes
    - Viewed (1)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertLogEqual("--> GET $url")
          .assertLogMatch(Regex("""<-- HTTP FAILED: java.net.UnknownHostException: reason. $url \(\d+ms\)"""))
          .assertNoMoreLogs()
      }
    
      @Test
      fun http2() {
        server.useHttps(handshakeCertificates.sslSocketFactory())
        url = server.url("/")
        setLevel(Level.BASIC)
        server.enqueue(MockResponse())
        val response = client.newCall(request().build()).execute()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 37.5K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
  5. mockwebserver/api/mockwebserver3.api

    	public final fun takeRequest (JLjava/util/concurrent/TimeUnit;)Lmockwebserver3/RecordedRequest;
    	public fun toString ()Ljava/lang/String;
    	public final fun url (Ljava/lang/String;)Lokhttp3/HttpUrl;
    	public final fun useHttps (Ljavax/net/ssl/SSLSocketFactory;)V
    }
    
    public final class mockwebserver3/PushPromise {
    	public fun <init> (Ljava/lang/String;Ljava/lang/String;Lokhttp3/Headers;Lmockwebserver3/MockResponse;)V
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt

            ).build()
        val serverHandshakeCertificates =
          HandshakeCertificates
            .Builder()
            .heldCertificate(certificate)
            .build()
        server.useHttps(serverHandshakeCertificates.sslSocketFactory())
        url = server.url("/robots.txt")
      }
    
      /**
       * Test connecting to the main host then an alternative, although only subject alternative names
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      private inner class DelayedRequestBody(
        private val delegate: RequestBody,
        delay: Long,
        timeUnit: TimeUnit,
      ) : RequestBody() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        mockWebServer.bodyLimit = 0L
        mockWebServer.protocolNegotiationEnabled = false
        mockWebServer.protocols = listOf()
        val protocols: List<Protocol> = mockWebServer.protocols
        mockWebServer.useHttps(SSLSocketFactory.getDefault() as SSLSocketFactory, false)
        mockWebServer.noClientAuth()
        mockWebServer.requestClientAuth()
        mockWebServer.requireClientAuth()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).hostnameVerifier(RecordingHostnameVerifier())
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    
      @Test
      fun redirectUsingSameConnectionEventSequence() {
        server.enqueue(
          MockResponse
            .Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_4x.md

            """.trimMargin())
        val handshakeCertificates = HandshakeCertificates.Builder()
            .heldCertificate(heldCertificate)
            .build()
        val server = MockWebServer()
        server.useHttps(handshakeCertificates.sslSocketFactory(), false)
        ```
    
        Get these strings with `HeldCertificate.certificatePem()` and `privateKeyPkcs8Pem()`.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
Back to top