- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for UnknownServiceException (0.19 sec)
-
okhttp/src/main/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", ) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 12K bytes - Viewed (0) -
okhttp/src/test/java/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()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 24 04:40:49 UTC 2024 - 20.9K bytes - Viewed (0) -
okhttp/src/main/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 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 kotlin.concurrent.withLock
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 18.6K bytes - Viewed (0) -
android-test/src/androidTest/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,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0) -
docs/changelogs/changelog_2x.md
when both are applicable. * Fix: Fail early when a port is out of range. * Fix: Offer `Content-Length` headers for multipart request bodies. * Fix: Throw `UnknownServiceException` if a cleartext connection is attempted when explicitly forbidden. * Fix: Throw a `SSLPeerUnverifiedException` when host verification fails.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 26.6K bytes - Viewed (0)