Package io.ktor.server.cio.backend


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 : CoroutineScope

Represents a request scope.


Link copied to clipboard
fun CoroutineScope.httpServer(settings: HttpServerSettings, handler: HttpRequestHandler): HttpServer

Start an http server with settings invoking handler for every request

Link copied to clipboard
fun CoroutineScope.startServerConnectionPipeline(connection: ServerIncomingConnection, timeout: WeakTimeoutQueue, handler: HttpRequestHandler): Job

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