JarFileContent
class JarFileContent : ReadChannelContent
Represents an OutgoingContent for a resource inside a Jar file
Parameters
jarFile
- is an instance of File representing a Jar
resourcePath
- is an instance of a resource inside a Jar file
Constructors
JarFileContent( JarFileContent( Represents an OutgoingContent for a resource inside a Jar file |
Properties
val contentLength: Long? Specifies content length in bytes for this resource. |
|
val contentType: ContentType Specifies ContentType for this resource. |
|
val jarFile: File is an instance of File representing a Jar |
|
val resourcePath: String is an instance of a resource inside a Jar file |
Functions
fun readFrom(): ByteReadChannel Provides ByteReadChannel for the content |
Inherited Functions
open fun readFrom(range: LongRange): ByteReadChannel Provides ByteReadChannel for the given range of the content |
Extension Properties
var OutgoingContent.caching: CachingOptions? Gets or sets CacheControl instance as an extension property on this content |
|
val OutgoingContent. Retrieves LastModified and ETag versions from this OutgoingContent headers |
|
var OutgoingContent.versions: List<Version> Gets or sets list of Version instances as an extension property on this content |
Extension Functions
suspend fun OutgoingContent.toByteArray(): ByteArray |
|
suspend fun OutgoingContent.toByteReadPacket(): ByteReadPacket |
|
fun OutgoingContent.wrapHeaders( Generates a new OutgoingContent of the same abstract type but with OutgoingContent.headers transformed by the specified block. |