ReadChannelContent
abstract class ReadChannelContent : OutgoingContent
Variant of a OutgoingContent with payload read from ByteReadChannel
Constructors
ReadChannelContent() Variant of a OutgoingContent with payload read from ByteReadChannel |
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 fun readFrom(): ByteReadChannel Provides ByteReadChannel for the content open fun readFrom(range: LongRange): ByteReadChannel Provides ByteReadChannel for the given range of the content |
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 JarFileContent : ReadChannelContent Represents an OutgoingContent for a resource inside a Jar file |
|
class LocalFileContent : ReadChannelContent OutgoingContent representing a local file with a specified contentType, expires date and caching |
|
class LocalFileContent : ReadChannelContent OutgoingContent representing a local file with a specified contentType, expires date and caching |
|
class URIFileContent : ReadChannelContent Represents a content that is served from the specified uri |