class WriterContent : WriteChannelContent
Represents a content that is produced by body function
WriterContent(body: suspend Writer.() -> Unit, contentType: ContentType, status: HttpStatusCode? = null)
Represents a content that is produced by body function |
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 |