-
-
Notifications
You must be signed in to change notification settings - Fork 130
Description
Is your feature request related to a problem? Please describe.
Currently, we need to specify platform-specific options like OkHttpClient and NSURLSession for Android and iOS respectively.
Describe the solution you'd like
Using Ktor would help remove the tight coupling to a specific HTTP client implementation, and also allows for consumers who have already been using it to easily adopt this parser library. Additionally, it's also officially recommended as the Kotlin Multiplatform HTTP client/server to use.
Describe alternatives you've considered
We could use interfaces and/or expect/actual as expected from Kotlin Multiplatform modules.
Additional context
I was looking at the README when I noticed that there were platform-specific instructions for Android and iOS to specify their platform-specific OkHttpClient/NSURLSession for the underlying HTTP client to use when parsing the data.
Hopefully I'm not missing any additional information, but I also did a quick cursory search for "ktor" in the codebase/GitHub issues and found no results. I suspect these requirements were from before the library was converted to a Kotlin Multiplatform project.