Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.34 KB

File metadata and controls

37 lines (28 loc) · 1.34 KB

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