class URIFileContent : ReadChannelContent
Represents a content that is served from the specified uri
URIFileContent(url: URL, contentType: ContentType = ContentType.defaultForFilePath(url.path)) URIFileContent(uri: URI, contentType: ContentType = ContentType.defaultForFilePath(uri.path))
Represents a content that is served from the specified uri |
val contentType: ContentType
Specifies ContentType for this resource. |
|
val uri: URI
that is used as a source |
fun readFrom(): ByteReadChannel
Provides ByteReadChannel for the content |
open fun readFrom(range: LongRange): ByteReadChannel
Provides ByteReadChannel for the given range of the content |
var OutgoingContent.caching: CachingOptions?
Gets or sets CacheControl instance as an extension property on this content |
|
var OutgoingContent.versions: List<Version>
Gets or sets list of Version instances as an extension property on this content |