Package io.ktor.server.cio.backend

Types

Link copied to clipboard
class ServerIncomingConnection(input: ByteReadChannel, output: ByteWriteChannel, remoteAddress: SocketAddress?, localAddress: SocketAddress?)

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.

Functions

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