Architecture

Follow a request through the platform transport and shared Kotlin HTTP core.

One HTTP core.
Three transports.

ktServe keeps HTTP parsing, connection state, routing and body streaming in a shared Kotlin core. A small transport interface handles socket reads, writes and readiness on each platform.

Read the transport design
HTTP/1.x request
Linuxepoll
Apple Siliconkqueue
JVMJDK NIO
ktServe HTTP coreParsing · connection state · streaming
ktServe routingKtor engineWebFlux adapter
Request path. The response returns through the same transport.