class FileResponseOptions
source · line 7public
public class FileResponseOptions internal constructor(
/** Explicit media type; None uses the resolved file's extension. */
public val contentType: String? = None,
/** An application-maintained tag for these exact representation bytes. */
public val entityTag: HttpEntityTag? = None,
/** Actual content coding of a pre-encoded file; None means identity. */
public val contentEncoding: String? = None,
/** Whether the application guarantees Last-Modified is a strong validator. */
public val lastModifiedIsStrong: Boolean = false,
/** Maximum bytes read and copied per iteration. */
public val bufferSize: Long = 8192L
)
Metadata and bounded copying for one explicitly selected file representation.
Extensions
public fun FileResponseOptions.copy(configure: FileResponseOptionsBuilder.() -> Unit = {}): FileResponseOptions· scoop:scoop.http.server:0.1.0
property lastModifiedIsStrong
source · line 15public
public val lastModifiedIsStrong: Boolean = false
get: public read-only
Whether the application guarantees Last-Modified is a strong validator.
property contentEncoding
source · line 13public
public val contentEncoding: String? = None
get: public read-only
Actual content coding of a pre-encoded file; None means identity.
property entityTag
source · line 11public
public val entityTag: HttpEntityTag? = None
get: public read-only
An application-maintained tag for these exact representation bytes.
property contentType
source · line 9public
public val contentType: String? = None
get: public read-only
Explicit media type; None uses the resolved file's extension.
property bufferSize
source · line 17public
public val bufferSize: Long = 8192L
get: public read-only
Maximum bytes read and copied per iteration.