- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 434 for Protocols (0.07 sec)
-
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
val i = HttpLoggingInterceptor() builder.interceptors().add(i) builder.networkInterceptors().add(i) } @Test fun protocol() { var protocol: Protocol = Protocol.HTTP_2 protocol = Protocol.get("") } @Test fun pushPromise() { val pushPromise: PushPromise = PushPromise("", "", headersOf(), MockResponse())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt
"ConnectionAcquired", "ConnectionReleased", ) } @Test @Throws(IOException::class) fun secondCallEventSequence() { enableTls() server!!.protocols = listOf(Protocol.HTTP_2, Protocol.HTTP_1_1) server!!.enqueue(MockResponse()) server!!.enqueue(MockResponse()) client.newCall(Request(server!!.url("/"))) .execute().close()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 9.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
val dns: Dns = address.dns() val socketFactory: SocketFactory = address.socketFactory() val proxyAuthenticator: Authenticator = address.proxyAuthenticator() val protocols: List<Protocol> = address.protocols() val connectionSpecs: List<ConnectionSpec> = address.connectionSpecs() val proxySelector: ProxySelector = address.proxySelector() val proxy: Proxy? = address.proxy()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13.3K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
private val cacheFs = FakeFileSystem() private val bootstrapClient = OkHttpClient.Builder() .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1)) .build() @BeforeEach fun setUp(server: MockWebServer) { this.server = server server.protocols = bootstrapClient.protocols dns = buildLocalhost(bootstrapClient, false) } @Test fun getOne() { server.enqueue(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 11K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/DuplexTest.kt
*/ private fun enableProtocol(protocol: Protocol) { enableTls() client = client.newBuilder() .protocols(listOf(protocol, Protocol.HTTP_1_1)) .build() server.protocols = client.protocols } private fun enableTls() { client = client.newBuilder() .sslSocketFactory(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 23.9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/TransportProvider.java
* If plugin or extension needs anything more complex feature wise (i.e. HTTP range support or alike) it should * probably roll its own. * <p> * This implementation is backed by Maven Resolver API, supported protocols and transport selection depends on it. If * resolver preference regarding transport is altered, it will affect this service as well. * * @since 4.0.0 */ @Experimental @Consumer
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Thu Mar 23 05:29:39 UTC 2023 - 2.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt
* * For cipher suites, at least one of the [required cipher suites][cipherSuites] must match the * socket's enabled cipher suites. If there are no required cipher suites the socket must have at * least one cipher suite enabled. * * For protocols, at least one of the [required protocols][tlsVersions] must match the socket's * enabled protocols.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 13.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/StatusLineTest.kt
* message is empty. http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1 */ @Test fun emptyMessageAndNoLeadingSpace() { val version = 1 val code = 503 val statusLine = parse("HTTP/1.$version $code") assertThat(statusLine.message).isEqualTo("") assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_1)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.5K bytes - Viewed (0) -
docs/contribute/concurrency.md
Blocking APIs may be inefficient because you hold a thread idle while waiting on the network. Threads are expensive because they have both a memory overhead and a context-switching overhead. #### Framed protocols
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 16:35:36 UTC 2022 - 7K bytes - Viewed (0) -
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java
server.setProtocols(Collections.singletonList(Protocol.H2_PRIOR_KNOWLEDGE)); server.enqueue(new MockResponse().setBody("hello")); server.start(); OkHttpClient client = new OkHttpClient.Builder() .socketFactory(new UnixDomainSocketFactory(socketFile)) .protocols(Collections.singletonList(Protocol.H2_PRIOR_KNOWLEDGE)) .build(); Request request = new Request.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Dec 24 03:46:30 UTC 2018 - 2.1K bytes - Viewed (0)