class ChannelWriterContent : WriteChannelContent
OutgoingContent to respond with ByteWriteChannel. The stream would be automatically closed after body finish.
ChannelWriterContent(body: suspend ByteWriteChannel.() -> Unit, contentType: ContentType?, status: HttpStatusCode? = null)
OutgoingContent to respond with ByteWriteChannel. The stream would be automatically closed after body finish. |
val contentType: ContentType?
Specifies ContentType for this resource. |
|
val status: HttpStatusCode?
Status code to set when sending this content |
suspend fun writeTo(channel: ByteWriteChannel): Unit
Receives channel provided by the engine and writes all data to it |
var OutgoingContent.caching: CachingOptions?
Gets or sets CacheControl instance as an extension property on this content |
|
var OutgoingContent.versions: List<Version>
Gets or sets list of Version instances as an extension property on this content |