https://github.com/coditory/kttp
https://github.com/coditory/kttp
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/coditory/kttp
- Owner: coditory
- License: apache-2.0
- Created: 2025-04-30T06:51:25.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-10-01T05:44:03.000Z (7 months ago)
- Last Synced: 2025-10-20T17:54:04.566Z (6 months ago)
- Language: Kotlin
- Size: 139 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# kttp - Kotlin HTTP
[](https://github.com/coditory/kttp/actions/workflows/build.yml)
[](https://codecov.io/gh/coditory/kttp)
[](https://mvnrepository.com/artifact/com.coditory.kttp/kttp)
**🚧 This library as under heavy development until release of version `1.x.x` 🚧**
> Thin kotlin HTTP layer with multiple server/client implementations.
> Provides coroutine friendly API without NO extension functions.
## Sample usage
Add dependency to `build.gradle.kts`:
Thin wrapper around [`com.sun.net.httpserver.HttpServer`](https://docs.oracle.com/en/java/javase/22/docs/api/jdk.httpserver/com/sun/net/httpserver/HttpServer.html).
- Coroutine friendly API for HttpServer
- Routing, filters, handlers
- Minimal dependencies - perfect to use in tests using http server mock
```kts
dependencies {
implementation("com.coditory.kttp:kttp-server-jdk:0.0.2")
}
```
## TBD
- Improve request matching
- smarter way to sort path matchers with '*'
- use accept and language to pick the best handler
- Upload file
- Serve files
- Websocket
- kttp client
- more tests
- add netty implementation for production usage