URIFileContent
class URIFileContent(uri: URI, contentType: ContentType, contentLength: Long?) : OutgoingContent.ReadChannelContent
Content copied to clipboard
Represents a content that is served from the specified uri
Constructors
Link copied to clipboard
fun URIFileContent(url: URL, contentType: ContentType = ContentType.defaultForFilePath(url.path))
Content copied to clipboard
Link copied to clipboard
fun URIFileContent(uri: URI, contentType: ContentType = ContentType.defaultForFilePath(uri.path), contentLength: Long? = null)
Content copied to clipboard
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
Link copied to clipboard
Specifies ContentType for this resource.