abstract class ReadChannelContent : OutgoingContent
Variant of a OutgoingContent with payload read from ByteReadChannel
ReadChannelContent()
Variant of a OutgoingContent with payload read from ByteReadChannel |
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 |
abstract fun readFrom(): ByteReadChannel
Provides ByteReadChannel for the content open fun readFrom(range: LongRange): ByteReadChannel
Provides ByteReadChannel for the given range of the content |
open fun <T : Any> getProperty(key: AttributeKey<T>): T?
Gets an extension property for this content |
|
open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?): Unit
Sets an extension property for this content |
class URIFileContent : ReadChannelContent
Represents a content that is served from the specified uri |