Package io.ktor.server.cio.backend

Types

Link copied to clipboard
class ServerIncomingConnection(input: <ERROR CLASS>, output: <ERROR CLASS>, remoteAddress: <ERROR CLASS>?, localAddress: <ERROR CLASS>?)

Represents a server incoming connection. Usually it is a TCP connection but potentially could be other transport.

Link copied to clipboard
class ServerRequestScope

Represents a request scope.

Functions

Link copied to clipboard
fun <ERROR CLASS>.httpServer(settings: HttpServerSettings, handler: HttpRequestHandler): HttpServer

Start an http server with settings invoking handler for every request

Link copied to clipboard
fun <ERROR CLASS>.startServerConnectionPipeline(connection: ServerIncomingConnection, timeout: WeakTimeoutQueue, handler: HttpRequestHandler): <ERROR CLASS>

Start connection HTTP pipeline invoking handler for every request. Note that handler could be invoked multiple times concurrently due to HTTP pipeline nature