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: <ERROR CLASS>, acceptJob: <ERROR CLASS>, serverSocket: <ERROR CLASS><<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 <ERROR CLASS>.httpServer(settings: HttpServerSettings, handler: suspend <ERROR CLASS>.(<ERROR CLASS>, <ERROR CLASS>, <ERROR CLASS>, <ERROR CLASS><Boolean>?) -> Unit): HttpServer

Start an http server with settings invoking handler for every request

Properties

Link copied to clipboard
val HttpPipelineCoroutine: <ERROR CLASS>

HTTP pipeline coroutine name

Link copied to clipboard
val HttpPipelineWriterCoroutine: <ERROR CLASS>

HTTP pipeline writer coroutine name

Link copied to clipboard
val RequestHandlerCoroutine: <ERROR CLASS>

HTTP request handler coroutine name