LocalFileContent
class LocalFileContent(val file: File, val contentType: ContentType = ContentType.defaultForFile(file)) : OutgoingContent.ReadChannelContent
OutgoingContent representing a local file with a specified contentType, expires date and caching
Parameters
file
specifies the File to be served to a client
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Generates a new OutgoingContent of the same abstract type but with OutgoingContent.headers transformed by the specified block.