WebSocketContent

class WebSocketContent : ClientUpgradeContent

Constructors

<init>

WebSocketContent()

Properties

headers

val headers: Headers

Headers to set when sending this content

Inherited Properties

output

val output: ByteWriteChannel

Functions

verify

fun verify(headers: Headers): Unit

Inherited Functions

pipeTo

suspend fun pipeTo(output: ByteWriteChannel): Unit

Extension Properties

caching

Gets or sets CacheControl instance as an extension property on this content

defaultVersions

val OutgoingContent.defaultVersions: List<Version>

Retrieves LastModified and ETag versions from this OutgoingContent headers

versions

Gets or sets list of Version instances as an extension property on this content

Extension Functions

wrapHeaders

fun OutgoingContent.wrapHeaders(
    block: (Headers) -> Headers
): OutgoingContent

Generates a new OutgoingContent of the same abstract type but with OutgoingContent.headers transformed by the specified block.