Docs

Ktor

Async web framework & client.

What is Ktor

Ktor builds asynchronous servers and clients in pure Kotlin with a small, composable API.

Install

gradle
kotlin
implementation("io.ktor:ktor-server-core:3.0.0")

Usage

kotlin
kotlin
embeddedServer(Netty, port = 8080) {
    routing {
        get("/") { call.respondText("Hello") }
    }
}.start(wait = true)

Docs

Official documentation: Ktor.