Home
Klopik is a batteries-included HTTP client for Kotlin Multiplatform.
It supports the following targets/platforms:
Why?
The Kotlin Multiplatform ecosystem is still in its early days, and there are not many libraries available that support all platforms. Actually the only option available right now is Ktor, which is a great library, but it's not as simple as I would like it to be.
There are two main reasons why I created Klopik:
-
Simplicity: I wanted to create a library that is simple to install and use. Ktor requires the developer to install the core library and then add the platform-specific dependencies. With Klopik you just need to add a single dependency to your project.
-
HTTPS support in all targets: At the time of this writing, Ktor HTTPS support on Linux is not great. The two Ktor engines available for Linux, CIO and Curl, don't support HTTPS or don't support the architecture ARM64. Klopik supports HTTPS in all platforms and architectures.
License
MIT License
Copyright (c) 2024, Vinicius Egidio.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.