class OutputStreamContent : WriteChannelContent
OutgoingContent to respond with OutputStream. The stream would be automatically closed after body finish.
OutputStreamContent(body: suspend OutputStream.() -> Unit, contentType: ContentType, status: HttpStatusCode? = null)
OutgoingContent to respond with OutputStream. 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 |