Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for useHttps (0.28 sec)

  1. 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"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/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,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        applicationLogs
          .assertLogEqual("--> GET $url")
          .assertLogEqual("<-- HTTP FAILED: java.net.UnknownHostException: reason")
          .assertNoMoreLogs()
      }
    
      @Test
      fun http2() {
        server.useHttps(handshakeCertificates.sslSocketFactory())
        url = server.url("/")
        setLevel(Level.BASIC)
        server.enqueue(MockResponse())
        val response = client.newCall(request().build()).execute()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  4. 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))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          .host(hostName)
          .port(port)
          .build()
          .resolve(path)!!
      }
    
      /**
       * Serve requests with HTTPS rather than otherwise.
       */
      fun useHttps(sslSocketFactory: SSLSocketFactory) {
        this.sslSocketFactory = sslSocketFactory
      }
    
      /**
       * Configure the server to not perform SSL authentication of the client. This leaves
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        server: MockWebServer,
      ) {
        this.server = server
        this.protocol = protocol
        platform.assumeNotOpenJSSE()
        if (protocol === Protocol.HTTP_2) {
          platform.assumeHttp2Support()
          server.useHttps(handshakeCertificates.sslSocketFactory())
          client =
            clientTestRule.newClientBuilder()
              .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1))
              .sslSocketFactory(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  7. CHANGELOG.md

        OkHttp's request bodies using the boundary only. (This change makes OkHttp more consistent with
        browsers and other HTTP clients.)
     *  New: Drop the `tunnelProxy` argument in `MockWebServer.useHttps()`. This change only impacts
        the OkHttp 5.x API which uses the `mockwebserver3` package.
     *  Fix: Don't call `toDuration()` which isn't available in kotlin-stdlib 1.4.
    
    
    ## Version 5.0.0-alpha.8
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  8. 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()`.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/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()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
Back to top