- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 34 for ProxySelector (0.28 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt
@Test fun proxyMoveTest(cleanClose: Boolean = true) { // Define a single Proxy at myproxy:8008 that will artificially move during the test val proxySelector = RecordingProxySelector() val socketAddress = InetSocketAddress.createUnresolved("myproxy", 8008) proxySelector.proxies.add(Proxy(Proxy.Type.HTTP, socketAddress)) // Define two host names for the DNS routing of fake proxy servers
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 11.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt
// If the URI lacks a host (as in "http://</"), don't call the ProxySelector. val uri = url.toUri() if (uri.host == null) return immutableListOf(Proxy.NO_PROXY) // Try each of the ProxySelector choices until one connection succeeds. val proxiesOrNull = address.proxySelector.select(uri) if (proxiesOrNull.isNullOrEmpty()) return immutableListOf(Proxy.NO_PROXY)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Oct 08 03:50:05 GMT 2025 - 7.3K bytes - Click Count (2) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
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() val sslSocketFactory: SSLSocketFactory? = address.sslSocketFactory() val hostnameVerifier: HostnameVerifier? = address.hostnameVerifier()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 13.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/proxy/NullProxySelector.kt
*/ package okhttp3.internal.proxy import java.io.IOException import java.net.Proxy import java.net.ProxySelector import java.net.SocketAddress import java.net.URI /** * A proxy selector that always returns the [Proxy.NO_PROXY]. */ object NullProxySelector : ProxySelector() { override fun select(uri: URI?): List<Proxy> { requireNotNull(uri) { "uri must not be null" }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 1.1K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/FakeProxySelector.kt
* limitations under the License. */ package okhttp3 import java.io.IOException import java.net.Proxy import java.net.ProxySelector import java.net.SocketAddress import java.net.URI class FakeProxySelector : ProxySelector() { val proxies: MutableList<Proxy> = mutableListOf() fun addProxy(proxy: Proxy): FakeProxySelector { proxies.add(proxy) return this }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.3K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/http/RecordingProxySelector.kt
import assertk.assertions.containsExactly import java.io.IOException import java.net.InetSocketAddress import java.net.Proxy import java.net.ProxySelector import java.net.SocketAddress import java.net.URI import okhttp3.internal.format class RecordingProxySelector : ProxySelector() { @JvmField val proxies = mutableListOf<Proxy>() val requestedUris = mutableListOf<URI>() val failures = mutableListOf<String>()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat May 10 11:15:14 GMT 2025 - 1.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
val proxyAuthenticator: Authenticator = address.proxyAuthenticator val protocols: List<Protocol> = address.protocols val connectionSpecs: List<ConnectionSpec> = address.connectionSpecs val proxySelector: ProxySelector = address.proxySelector val sslSocketFactory: SSLSocketFactory? = address.sslSocketFactory val hostnameVerifier: HostnameVerifier? = address.hostnameVerifierCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 47K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
DefaultProxySelector proxySelector = new DefaultProxySelector(); for (Proxy proxy : request.getProxies()) { AuthenticationBuilder authBuilder = new AuthenticationBuilder(); authBuilder.addUsername(proxy.getUsername()).addPassword(proxy.getPassword()); proxySelector.add( new org.eclipse.aether.repository.Proxy(Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Jul 17 05:56:35 GMT 2025 - 25.8K bytes - Click Count (0) -
docs/features/connections.md
Routes supply the **dynamic** information necessary to actually connect to a webserver. This is the specific IP address to attempt (as discovered by a DNS query), the exact proxy server to use (if a [ProxySelector](https://developer.android.com/reference/java/net/ProxySelector.html) is in use), and which version of TLS to negotiate (for HTTPS connections).
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Feb 21 03:33:59 GMT 2022 - 5.4K bytes - Click Count (0) -
docs/changelogs/upgrading_to_okhttp_4.md
Kotlin does have properties and we take advantage of them in OkHttp. * **Address**: certificatePinner, connectionSpecs, dns, hostnameVerifier, protocols, proxy, proxyAuthenticator, proxySelector, socketFactory, sslSocketFactory, url * **Cache**: directory * **CacheControl**: immutable, maxAgeSeconds, maxStaleSeconds, minFreshSeconds, mustRevalidate, noCache, noStore, noTransform, onlyIfCached, sMaxAgeSeconds
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 16:58:16 GMT 2022 - 10.9K bytes - Click Count (0)