StreamContent

class StreamContent : OutgoingContent.WriteChannelContent

Creates an Http content from a file by streaming

Functions

Link copied to clipboard
open fun <T : Any> getProperty(key: AttributeKey<T>): T?
Link copied to clipboard
open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?)
Link copied to clipboard
open fun trailers(): Headers?
Link copied to clipboard
open suspend override fun writeTo(channel: ByteWriteChannel)

Properties

Link copied to clipboard
open override val contentLength: Long

Length of the data in bytes

Link copied to clipboard
open override val contentType: ContentType

Http ContentType to specify the type of the file

Link copied to clipboard
open val headers: Headers
Link copied to clipboard
open val status: HttpStatusCode?