jvmAndPosixMain.io.ktor.server.cio.CIOApplicationCall.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ktor-server-cio-androidnativex64 Show documentation
Show all versions of ktor-server-cio-androidnativex64 Show documentation
Ktor is a framework for quickly creating web applications in Kotlin with minimal effort.
The newest version!
/*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.server.cio
import io.ktor.http.cio.*
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.util.network.*
import io.ktor.utils.io.*
import kotlinx.coroutines.*
import kotlin.coroutines.*
internal class CIOApplicationCall(
application: Application,
_request: Request,
input: ByteReadChannel,
output: ByteWriteChannel,
engineDispatcher: CoroutineContext,
appDispatcher: CoroutineContext,
upgraded: CompletableDeferred?,
remoteAddress: NetworkAddress?,
localAddress: NetworkAddress?,
override val coroutineContext: CoroutineContext
) : BaseApplicationCall(application), CoroutineScope {
override val request = CIOApplicationRequest(
this,
remoteAddress,
localAddress,
input,
_request
)
override val response = CIOApplicationResponse(this, output, input, engineDispatcher, appDispatcher, upgraded)
internal fun release() {
request.release()
}
init {
putResponseAttribute()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy