how do I actually configurate OkHttp things such ...
# ktor
j
how do I actually configurate OkHttp things such as sslSocketFactory?
d
https://ktor.io/clients/http-client/engines.html#okhttp
Copy code
HttpClient(OkHttp) {
    engine {
        config {
            sslSocketFactory(...)
        }
    }
}
j
Ah thanks. Was missing the inner config builder… still kinda getting lost in complicated Kotlin Kode with generics, extensions, applies, and blocks…
d
The generics part is hard, but it is like that to be flexible enough. No much can be done there. My recommendation when starting is to check the documentation and ask here if there is something missing. For the inner builders, your best bet is to put
this.
or
ctrl + space
and get autocompletion, you can then go to the declaration. At least is fully typed.