Package-level declarations
Types
Link copied to clipboard
An ApplicationEngineFactory providing a CIO-based ApplicationEngine
Link copied to clipboard
class CIOApplicationEngine(environment: ApplicationEngineEnvironment, configure: CIOApplicationEngine.Configuration.() -> Unit) : BaseApplicationEngine
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
HTTP request handler function
Link copied to clipboard
class HttpServer(val rootServerJob: Job, val acceptJob: Job, val serverSocket: Deferred<ServerSocket>)
Represents a server instance
Link copied to clipboard
data class HttpServerSettings(val host: String = "0.0.0.0", val port: Int = 8080, val connectionIdleTimeoutSeconds: Long = 45)
HTTP server connector settings
Functions
Link copied to clipboard
fun CoroutineScope.httpServer(settings: HttpServerSettings, handler: suspend CoroutineScope.(request: Request, input: ByteReadChannel, output: ByteWriteChannel, upgraded: CompletableDeferred<Boolean>?) -> Unit): HttpServer