httpServer

fun CoroutineScope.httpServer(settings: HttpServerSettings, handler: suspend CoroutineScope.(request: Request, input: ByteReadChannel, output: ByteWriteChannel, upgraded: CompletableDeferred<Boolean>?) -> Unit): HttpServer

Deprecated (with error)

Use handler function with single request parameter from package io.ktor.server.cio.backend.

Start an http server with settings invoking handler for every request