- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for isCleartextTrafficPermitted (0.15 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/platform/AndroidPlatform.kt
override fun isCleartextTrafficPermitted(hostname: String): Boolean = when { Build.VERSION.SDK_INT >= 24 -> NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(hostname) Build.VERSION.SDK_INT >= 23 -> NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted else -> true }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/Android10Platform.kt
super.logCloseableLeak(message, stackTrace) } } @SuppressLint("NewApi") override fun isCleartextTrafficPermitted(hostname: String): Boolean = NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(hostname) override fun buildCertificateChainCleaner(trustManager: X509TrustManager): CertificateChainCleaner =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt
level: Int = INFO, t: Throwable? = null, ) { val logLevel = if (level == WARN) Level.WARNING else Level.INFO logger.log(logLevel, message, t) } open fun isCleartextTrafficPermitted(hostname: String): Boolean = true /** * Returns an object that holds a stack trace created at the moment this method is executed. This
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
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", ) } } else {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 12K bytes - Viewed (0)