abstract class ProtocolUpgrade : OutgoingContent
Variant of a OutgoingContent for upgrading an HTTP connection
ProtocolUpgrade()
Variant of a OutgoingContent for upgrading an HTTP connection |
val status: HttpStatusCode?
Status code to set when sending this content |
open val contentLength: Long?
Specifies content length in bytes for this resource. |
|
open val contentType: ContentType?
Specifies ContentType for this resource. |
|
open val headers: Headers
Headers to set when sending this content |
abstract suspend fun upgrade(input: ByteReadChannel, output: ByteWriteChannel, engineContext: <ERROR CLASS>, userContext: <ERROR CLASS>): Job
Upgrades an HTTP connection |
open fun <T : Any> getProperty(key: AttributeKey<T>): T?
Gets an extension property for this content |
|
open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?): Unit
Sets an extension property for this content |