https://kotlinlang.org logo
#ktor
Title
# ktor
b

Benjamin Deroche

06/10/2022, 3:07 PM
How can I disable hostname verification with Ktor CIO Client ? With Okhttp I could just do this but haven't found the solution for CIO:
Copy code
HttpClient(OkHttp) {
            engine {
                config {
                    hostnameVerifier {
                            _, _ -> true
                    }
                }
            }
        }
a

Aleksei Tirman [JB]

06/14/2022, 9:56 AM
What exception do you get when a verification is failed?
4 Views