InMemoryResource

class InMemoryResource(content: ByteArray, val contentType: ContentType, val lastModified: Instant? = null, val etag: ETag? = null) : Resource

Constructors

Link copied to clipboard
constructor(content: String, contentType: ContentType, lastModified: Instant? = null, etag: ETag? = null)
constructor(content: ByteArray, contentType: ContentType, lastModified: Instant? = null, etag: ETag? = null)

Properties

Link copied to clipboard
open override val contentType: ContentType
Link copied to clipboard
open override val etag: ETag? = null
Link copied to clipboard
open val headers: Headers
Link copied to clipboard
open override val lastModified: Instant? = null
Link copied to clipboard
open override val length: Long?

Functions

Link copied to clipboard
open operator override fun invoke(request: Request): MemoryResponse
Link copied to clipboard
open fun isModifiedSince(instant: Instant): Boolean
Link copied to clipboard
open override fun openStream(): ByteArrayInputStream