URIFileContent
class URIFileContent(val uri: URI, val contentType: ContentType = ContentType.defaultForFilePath(uri.path), val contentLength: Long? = null) : OutgoingContent.ReadChannelContent
Represents a content that is served from the specified uri
Constructors
Link copied to clipboard
Link copied to clipboard
fun URIFileContent(uri: URI, contentType: ContentType = ContentType.defaultForFilePath(uri.path), contentLength: Long? = null)
Functions
Link copied to clipboard
Gets an extension property for this content
Link copied to clipboard
Provides ByteReadChannel for the content
Provides ByteReadChannel for the given range of the content
Link copied to clipboard
Sets an extension property for this content
Properties
Extensions
Link copied to clipboard
Gets or sets the CacheControl instance as an extension property on this content.