Skip to content

Use Ktor for the underlying HTTP request handler #175

@EdricChan03

Description

@EdricChan03

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions