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 |
val OutgoingContent.
Retrieves LastModified and ETag versions from this OutgoingContent headers |