OutputStreamContent

class OutputStreamContent(body: suspend OutputStream.() -> Unit, val contentType: <Error class: unknown class>, val status: <Error class: unknown class>? = null, val contentLength: Long? = null)

OutgoingContent to respond with OutputStream. The stream would be automatically closed after body finish.

Constructors

Link copied to clipboard
constructor(body: suspend OutputStream.() -> Unit, contentType: <Error class: unknown class>, status: <Error class: unknown class>? = null, contentLength: Long? = null)

Properties

Link copied to clipboard
open val contentLength: Long? = null
Link copied to clipboard
open val contentType: <Error class: unknown class>
Link copied to clipboard
open val status: <Error class: unknown class>? = null

Functions

Link copied to clipboard
open suspend fun writeTo(channel: ByteWriteChannel)