WriteChannelContent
abstract class WriteChannelContent : OutgoingContent
Variant of a OutgoingContent with payload written to ByteWriteChannel
Constructors
WriteChannelContent() Variant of a OutgoingContent with payload written to ByteWriteChannel |
Inherited Properties
open val contentLength: Long? Specifies content length in bytes for this resource. |
|
open val contentType: ContentType? Specifies ContentType for this resource. |
|
open val headers: Headers Headers to set when sending this content |
|
open val status: HttpStatusCode? Status code to set when sending this content |
Functions
abstract suspend fun writeTo(channel: ByteWriteChannel): Unit Receives channel provided by the engine and writes all data to it |
Inherited Functions
open fun <T : Any> getProperty(key: AttributeKey<T>): T? Gets an extension property for this content |
|
open fun <T : Any> setProperty( Sets an extension property for this content |
Inheritors
class ChannelWriterContent : WriteChannelContent OutgoingContent to respond with ByteWriteChannel. The stream would be automatically closed after body finish. |
|
class HtmlContent : WriteChannelContent Represents an OutgoingContent using |
|
class MultiPartFormDataContent : WriteChannelContent OutgoingContent for multipart/form-data formatted request. |
|
class OutputStreamContent : WriteChannelContent OutgoingContent to respond with OutputStream. The stream would be automatically closed after body finish. |
|
class WriterContent : WriteChannelContent Represents a content that is produced by body function |