android-async-http / android-async-http/android-async-http

Support throwing `UnknownServiceException` if there is no cleartext traffic permitted

Open
#1,386 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.