ChannelWriterContent
class ChannelWriterContent(body: suspend ByteWriteChannel.() -> Unit, val contentType: ContentType?, val status: HttpStatusCode? = null, val contentLength: Long? = null) : OutgoingContent.WriteChannelContent
OutgoingContent to respond with ByteWriteChannel. The stream would be automatically closed after body finish.
Constructors
Link copied to clipboard
fun ChannelWriterContent(body: suspend ByteWriteChannel.() -> Unit, contentType: ContentType?, status: HttpStatusCode? = null, contentLength: Long? = null)
Functions
Link copied to clipboard
Gets an extension property for this content
Link copied to clipboard
Sets an extension property for this content
Link copied to clipboard
Receives channel provided by the engine and writes all data to it
Properties
Extensions
Link copied to clipboard
Gets or sets the CacheControl instance as an extension property on this content.