Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 22 of 22 for h2_prior_knowledge (0.5 seconds)

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

            .protocols(listOf(Protocol.H2_PRIOR_KNOWLEDGE))
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.enqueue(MockResponse())
        val call = client.newCall(Request(server.url("/")))
        assertFailsWith<UnknownServiceException> {
          call.execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("H2_PRIOR_KNOWLEDGE cannot be used with HTTPS")
        }
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  2. docs/changelogs/changelog_3x.md

        code][https_server_sample].
    
     *  **OkHttp now supports prior knowledge cleartext HTTP/2.** Enable this by setting
        `Protocol.H2_PRIOR_KNOWLEDGE` as the lone protocol on an `OkHttpClient.Builder`. This mode
        only supports `http:` URLs and is best suited in closed environments where HTTPS is
        inappropriate.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Click Count (0)
Back to Top