Skip to content

coditory/kttp

kttp - Kotlin HTTP

Build Coverage Maven Central

🚧 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.

  • Coroutine friendly API for HttpServer
  • Routing, filters, handlers
  • Minimal dependencies - perfect to use in tests using http server mock
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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •