android-async-http / android-async-http/android-async-http
Support throwing `UnknownServiceException` if there is no cleartext traffic permitted
Open
- Dominant language
- Java
- Stars
- 10.6k
- Forks
- 4k
- PR merge metrics
- No merged PRs in 30d
Description
If there is no cleartext traffic permitted, we should throw `UnknownServiceException`, like [OkHttp did](https://github.com/square/okhttp/blob/735ed1a6e5a15042f6d7e8f100fb3c8376f6aa27/okhttp/src/jvmMain/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt#L205-L208), more info see https://developer.android.com/reference/android/security/NetworkSecurityPolicy#isCleartextTrafficPermitted()
Contributor guide
Assessment
This issue has not been assessed yet.