- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for H2_PRIOR_KNOWLEDGE (0.12 sec)
-
okhttp/src/main/kotlin/okhttp3/Route.kt
* * [rfc_2817]: http://www.ietf.org/rfc/rfc2817.txt */ fun requiresTunnel(): Boolean { if (proxy.type() != Proxy.Type.HTTP) return false return (address.sslSocketFactory != null) || (Protocol.H2_PRIOR_KNOWLEDGE in address.protocols) } override fun equals(other: Any?): Boolean { return other is Route && other.address == address && other.proxy == proxy && other.socketAddress == socketAddress
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
"CLEARTEXT communication to $host not permitted by network security policy", ) } } else { if (Protocol.H2_PRIOR_KNOWLEDGE in route.address.protocols) { throw UnknownServiceException("H2_PRIOR_KNOWLEDGE cannot be used with HTTPS") } } val tunnelRequest = when { route.requiresTunnel() -> createTunnelRequest(route)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 12K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
require(Protocol.H2_PRIOR_KNOWLEDGE in protocolsCopy || HTTP_1_1 in protocolsCopy) { "protocols must contain h2_prior_knowledge or http/1.1: $protocolsCopy" } require(Protocol.H2_PRIOR_KNOWLEDGE !in protocolsCopy || protocolsCopy.size <= 1) { "protocols containing h2_prior_knowledge cannot use other protocols: $protocolsCopy" }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:21:33 UTC 2024 - 52K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt
user.secureConnectEnd(handshake) } else { socket = rawSocket protocol = when { Protocol.H2_PRIOR_KNOWLEDGE in route.address.protocols -> Protocol.H2_PRIOR_KNOWLEDGE else -> Protocol.HTTP_1_1 } } val connection = RealConnection( taskRunner = taskRunner,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 18.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt
this.withLock { successCount++ } } @Throws(IOException::class) fun start() { idleAtNs = System.nanoTime() if (protocol == Protocol.HTTP_2 || protocol == Protocol.H2_PRIOR_KNOWLEDGE) { startHttp2() } } @Throws(IOException::class) private fun startHttp2() { val socket = this.socket!! val source = this.source!! val sink = this.sink!!
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 15.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
.hostnameVerifier(RecordingHostnameVerifier()) .build() scheme = "https" } else { server.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE) client = clientTestRule.newClientBuilder() .protocols(listOf(Protocol.H2_PRIOR_KNOWLEDGE)) .build() scheme = "http" } } @AfterEach fun tearDown() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0) -
CHANGELOG.md
* Fix: Don't call `toDuration()` which isn't available in kotlin-stdlib 1.4. ## Version 5.0.0-alpha.8 _2022-06-08_ * Fix: Change how `H2_PRIOR_KNOWLEDGE` works with HTTP proxies. Previously OkHttp assumed the proxy itself was a prior knowledge HTTP/2 server. With this update, OkHttp attempts a `CONNECT`
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:31:39 UTC 2024 - 21.4K bytes - Viewed (0) -
okhttp/src/test/java/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") } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0) -
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.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 14:55:54 UTC 2022 - 50.8K bytes - Viewed (0) -
okhttp/api/okhttp.api
public final class okhttp3/OkHttpClient$Companion { } public final class okhttp3/Protocol : java/lang/Enum { public static final field Companion Lokhttp3/Protocol$Companion; public static final field H2_PRIOR_KNOWLEDGE Lokhttp3/Protocol; public static final field HTTP_1_0 Lokhttp3/Protocol; public static final field HTTP_1_1 Lokhttp3/Protocol; public static final field HTTP_2 Lokhttp3/Protocol;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0)