Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setProtocolsRejectsHttp10 (0.1 sec)

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

        assertThat(b.connectionPool).isSameAs(a.connectionPool)
        assertThat(b.sslSocketFactory).isSameAs(a.sslSocketFactory)
        assertThat(b.x509TrustManager).isSameAs(a.x509TrustManager)
      }
    
      @Test fun setProtocolsRejectsHttp10() {
        val builder = OkHttpClient.Builder()
        assertFailsWith<IllegalArgumentException> {
          builder.protocols(listOf(Protocol.HTTP_1_0, Protocol.HTTP_1_1))
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 13.2K bytes
    - Viewed (0)
Back to top