- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 37 for ProxySelector (0.11 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt
@JvmName("-deprecated_proxySelector") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "proxySelector"), level = DeprecationLevel.ERROR, ) fun proxySelector(): ProxySelector = proxySelector @JvmName("-deprecated_proxy") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "proxy"),Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 7.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealInterceptorChain.kt
return copy(proxy = proxy) } override fun withProxySelector(proxySelector: ProxySelector): Interceptor.Chain { check(exchange == null) { "proxySelector can't be adjusted in a network interceptor" } return copy(proxySelector = proxySelector) } override fun withProxyAuthenticator(proxyAuthenticator: Authenticator): Interceptor.Chain {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 12.8K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
proxy = proxy, protocols = protocols, connectionSpecs = connectionSpecs, proxySelector = proxySelector, ) fun newHttpsAddress( uriHost: String = this.uriHost, uriPort: Int = this.uriPort, proxy: Proxy? = null, proxySelector: ProxySelector = this.proxySelector, sslSocketFactory: SSLSocketFactory? = this.sslSocketFactory,Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 12:06:21 GMT 2026 - 6.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt
} object ProxySelectorOverride : Override<ProxySelector> { override fun Interceptor.Chain.value(): ProxySelector = proxySelector override fun Interceptor.Chain.withOverride(value: ProxySelector): Interceptor.Chain = withProxySelector(value) override fun OkHttpClient.Builder.withOverride(value: ProxySelector): OkHttpClient.Builder = proxySelector(value) override val nonDefaultValue: ProxySelector =Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 11 02:37:00 GMT 2026 - 28.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/LegacyRepositorySystemSessionExtender.java
Map<String, Object> configProperties, MirrorSelector mirrorSelector, ProxySelector proxySelector, AuthenticationSelector authenticationSelector) { injectMirror(mavenExecutionRequest.getRemoteRepositories(), mavenExecutionRequest.getMirrors()); injectProxy(proxySelector, mavenExecutionRequest.getRemoteRepositories());
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 6.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/AddressTest.kt
val a = factory.newAddress(proxySelector = RecordingProxySelector()) val b = factory.newAddress(proxySelector = RecordingProxySelector()) assertThat(b).isNotEqualTo(a) } @Test fun addressToString() { val address = factory.newAddress() assertThat(address.toString()) .isEqualTo("Address{example.com:80, proxySelector=RecordingProxySelector}") }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SocksProxyTest.kt
// The HTTP calls should share a single connection. assertThat(socksProxy.connectionCount()).isEqualTo(1) } @Test fun proxySelector() { server.enqueue(MockResponse.Builder().body("abc").build()) val proxySelector: ProxySelector = object : ProxySelector() { override fun select(uri: URI) = listOf(socksProxy.proxy()) override fun connectFailed( uri: URI,Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 3.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
@Test fun connectExceptionsAreReturnedAsSuppressed() { val proxySelector = RecordingProxySelector() proxySelector.proxies.add(Proxy(Proxy.Type.HTTP, TestUtil.UNREACHABLE_ADDRESS_IPV4)) proxySelector.proxies.add(Proxy.NO_PROXY) server.close() client = client .newBuilder() .proxySelector(proxySelector) .readTimeout(Duration.ofMillis(100))
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 8.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
.Builder() .proxySelector(FakeProxySelector()) .build() assertThat(client.proxy).isNull() assertThat(client.proxySelector) .isInstanceOf(FakeProxySelector::class.java) } @Test fun sharesRouteDatabase() { val client = OkHttpClient .Builder() .build() val proxySelector: ProxySelector = object : ProxySelector() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 13.4K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt
/** * Returns the [ProxySelector] for the OkHttpClient, or an override from the Call.Chain. */ val proxySelector: ProxySelector /** * Override the [ProxySelector] for the Call.Chain. * * @throws IllegalStateException if this is a Network Interceptor, since the override is too late. */ fun withProxySelector(proxySelector: ProxySelector): Chain /**Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 8.9K bytes - Click Count (0)