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

Jonas Bark

10/09/2018, 6:05 PM
Can someone confirm my train of thoughts? according to https://ktor.io/clients/http-client/engines.html#okhttp in a multiplatform environment in order to support e.g. SSL certificate pinning or ignoring SSL altogether I would use: - Android: HttpClient using OkHttp engine with its configuration options - iOS: as there's no options available write my own engine (or even better, create a pull request)
d

Deactivated User

10/10/2018, 10:58 AM
https://ktor.io/clients/http-client/engines.html#ios the Ios client doesn’t work for you?
j

Jonas Bark

10/10/2018, 9:20 PM
It does and works quite nice so far. But the default iOS engine doesn't expose (or at least I didn't find it) a possibility to configure the nsurlsession. For example to do SSL certificate pinning.
d

Deactivated User

10/11/2018, 6:54 AM
I see. I guess it supports SSL, but if you need to configure it, maybe it is not configurable enough. So yeah, PRs are welcome 🙂
👍 1
j

Jonas Bark

10/17/2018, 2:29 PM
d

Deactivated User

10/17/2018, 2:30 PM
Uhm. That’s strange. Maybe a bug?
@e5l have you found a similar issue that could help here? If not, I guess you can report to #kotlin-native