- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for proxyServer1 (0.11 sec)
-
okhttp/src/test/java/okhttp3/RouteFailureTest.kt
proxySelector.proxies.add(Proxy(Proxy.Type.HTTP, socketAddress)) // Define two host names for the DNS routing of fake proxy servers val proxyServer1 = InetAddress.getByAddress("proxyServer1", byteArrayOf(127, 0, 0, 2)) val proxyServer2 = InetAddress.getByAddress("proxyServer2", byteArrayOf(127, 0, 0, 3)) println("Proxy Server 1 is ${server1.inetSocketAddress}") println("Proxy Server 2 is ${server2.inetSocketAddress}")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue May 14 17:48:07 UTC 2024 - 11.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
object : ProxySelector() { override fun select(uri: URI): List<Proxy> { proxySelectionRequests.add(uri) val proxyServer = if (uri.port == server.port) server else server2 return listOf(proxyServer.toProxyAddress()) } override fun connectFailed( uri: URI, address: SocketAddress,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0)