- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for UnknownServiceException (0.14 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
if (ConnectionSpec.CLEARTEXT !in route.address.connectionSpecs) { throw UnknownServiceException("CLEARTEXT communication not enabled for client") } val host = route.address.url.host if (!Platform.get().isCleartextTrafficPermitted(host)) { throw UnknownServiceException( "CLEARTEXT communication to $host not permitted by network security policy", ) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt
} @Test fun routePlannerPlanThrowsOnOnlyPlan() { val plan0 = routePlanner.addPlan() plan0.planningThrowable = UnknownServiceException("boom!") taskRunner.newQueue().execute("connect") { assertFailsWith<UnknownServiceException> { finder.find() }.also { expected -> assertThat(expected).hasMessage("boom!") } } taskFaker.runTasks()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 20.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
import java.io.IOException import java.net.ConnectException import java.net.HttpURLConnection import java.net.ProtocolException import java.net.Proxy import java.net.Socket as JavaNetSocket import java.net.UnknownServiceException import java.security.cert.X509Certificate import java.util.concurrent.TimeUnit import javax.net.ssl.SSLPeerUnverifiedException import javax.net.ssl.SSLSocket import okhttp3.CertificatePinner
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 19.3K bytes - Click Count (2) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
import java.net.HttpURLConnection import java.net.InetAddress import java.net.ProtocolException import java.net.Proxy import java.net.SocketTimeoutException import java.net.UnknownHostException import java.net.UnknownServiceException import java.time.Duration import java.util.Arrays import java.util.concurrent.BlockingQueue import java.util.concurrent.CountDownLatch import java.util.concurrent.Executors
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt
val request = Request.Builder().url("http://squareup.com/robots.txt").build() try { client.newCall(request).execute() fail<Any>("expected cleartext blocking") } catch (_: java.net.UnknownServiceException) { } } data class HowsMySslResults( val unknown_cipher_suite_supported: Boolean, val beast_vuln: Boolean, val session_ticket_supported: Boolean,Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 29.9K bytes - Click Count (0)