LocalPathContent

class LocalPathContent(val path: Path, val contentType: ContentType = ContentType.defaultForFileExtension(path.extension)) : OutgoingContent.ReadChannelContent

Constructors

Link copied to clipboard
constructor(path: Path, contentType: ContentType = ContentType.defaultForFileExtension(path.extension))

Properties

Link copied to clipboard
open override val contentLength: Long
Link copied to clipboard
open override val contentType: ContentType
Link copied to clipboard
open val headers: Headers
Link copied to clipboard
val path: Path
Link copied to clipboard

Functions

Link copied to clipboard
open fun <T : Any> getProperty(key: AttributeKey<T>): T?
Link copied to clipboard
open override fun readFrom(): ByteReadChannel
open override fun readFrom(range: LongRange): ByteReadChannel
Link copied to clipboard
open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?)
Link copied to clipboard
open fun trailers(): Headers?