fun CoroutineScope.startConnectionPipeline(
    input: ByteReadChannel,
    output: ByteWriteChannel,
    timeout: WeakTimeoutQueue,
    handler: suspend CoroutineScope.(request: Request, input: ByteReadChannel, output: ByteWriteChannel, upgraded: CompletableDeferred<Boolean>?) -> Unit
): Job

Deprecated: This is going to become internal. Start ktor server or raw cio server from ktor-server-cio module instead of constructing server from parts.

Start connection HTTP pipeline invoking handler for every request. Note that handler could be invoked multiple times concurrently due to HTTP pipeline nature


input - incoming channel

output - outgoing bytes channel

timeout - number of IDLE seconds after the connection will be closed

handler - to be invoked for every incoming request

Return pipeline job