Hello i've tried to implement http call with ktor ...
# kotlin-native
m
Hello i've tried to implement http call with ktor in mmp project using this link https://ktor.io/clients/http-client/multiplatform.html, i can get the result but i have no idea how to get the status code, anyone else tried this solution?
u
Create transform response pipeline to wrapped HttpResponse data class.
or implement a serializer if you use JsonFeature. There may be other good ways. 🙂
m
Hey thank you i managed to have it in a simple way with val result: HttpResponse = client.get
then result.status
does kotlinx-serialization-runtime work on IOS too?
u