Package io.ktor.server.cio

Types

Link copied to clipboard
object CIO

An ApplicationEngineFactory providing a CIO-based ApplicationEngine

Link copied to clipboard
class CIOApplicationEngine(environment: <ERROR CLASS>, configure: CIOApplicationEngine.Configuration.() -> Unit)

Engine that based on CIO backend

Link copied to clipboard
object EngineMain

Default engine with main function that starts CIO engine using application.conf

Link copied to clipboard
typealias HttpRequestHandler = suspend ServerRequestScope.(<ERROR CLASS>) -> Unit

HTTP request handler function

Link copied to clipboard
class HttpServer(rootServerJob: Job, acceptJob: Job, serverSocket: Deferred<<ERROR CLASS>>)

Represents a server instance

Link copied to clipboard
data class HttpServerSettings(host: String, port: Int, connectionIdleTimeoutSeconds: Long)

HTTP server connector settings

Functions

Link copied to clipboard
fun CoroutineScope.httpServer(settings: HttpServerSettings, handler: suspend CoroutineScope.(<ERROR CLASS>, <ERROR CLASS>, <ERROR CLASS>, upgraded: CompletableDeferred<Boolean>?) -> Unit): HttpServer

Start an http server with settings invoking handler for every request

Properties

Link copied to clipboard
val HttpPipelineCoroutine: CoroutineName

HTTP pipeline coroutine name

Link copied to clipboard
val HttpPipelineWriterCoroutine: CoroutineName

HTTP pipeline writer coroutine name

Link copied to clipboard
val RequestHandlerCoroutine: CoroutineName

HTTP request handler coroutine name