Scoop API

scoop:scoop.http.server:0.1.0

FileResponseOptions

class FileResponseOptions

source · line 7
public
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

property lastModifiedIsStrong

source · line 15
public
public val lastModifiedIsStrong: Boolean = false

get: public read-only

Whether the application guarantees Last-Modified is a strong validator.

property contentEncoding

source · line 13
public
public val contentEncoding: String? = None

get: public read-only

Actual content coding of a pre-encoded file; None means identity.

property entityTag

source · line 11
public
public val entityTag: HttpEntityTag? = None

get: public read-only

An application-maintained tag for these exact representation bytes.

property contentType

source · line 9
public
public val contentType: String? = None

get: public read-only

Explicit media type; None uses the resolved file's extension.

property bufferSize

source · line 17
public
public val bufferSize: Long = 8192L

get: public read-only

Maximum bytes read and copied per iteration.