class LocalFileContent : ReadChannelContent
OutgoingContent representing a local file with a specified contentType, expires date and caching
file
- specifies the File to be served to a client
LocalFileContent(file: File, contentType: ContentType = ContentType.defaultForFile(file))
OutgoingContent representing a local file with a specified contentType, expires date and caching |
val contentLength: Long |
|
val contentType: ContentType |
|
val file: File
specifies the File to be served to a client |
fun readFrom(): ByteReadChannel fun readFrom(range: LongRange): ByteReadChannel |
fun OutgoingContent.wrapHeaders(block: (Headers) -> Headers): OutgoingContent
Generates a new OutgoingContent of the same abstract type but with OutgoingContent.headers transformed by the specified block. |