Scoop API

scoop:scoop.http.server:0.1.0

StaticFileOptions

class StaticFileOptions

source · line 57
public
public class StaticFileOptions internal constructor(
    /** Name of the route's terminal wildcard parameter. */
    public val pathParameter: String = "path",
    /** A fixed index filename, attempted only for directories; None disables indexes. */
    public val indexDocument: String? = None,
    /** Options shared by the files served by this handler. */
    public val fileOptions: FileResponseOptions = fileResponseOptions(),
    /** File to serve once for missing GET/HEAD paths; relative paths use the process working directory. */
    public val fallbackFile: Path? = None
)

Explicit wildcard mapping, directory indexes and an optional missing-file response.

Extensions

property indexDocument

source · line 61
public
public val indexDocument: String? = None

get: public read-only

A fixed index filename, attempted only for directories; None disables indexes.

property pathParameter

source · line 59
public
public val pathParameter: String = "path"

get: public read-only

Name of the route's terminal wildcard parameter.

property fileOptions

source · line 63
public
public val fileOptions: FileResponseOptions = fileResponseOptions()

get: public read-only

Options shared by the files served by this handler.

property fallbackFile

source · line 65
public
public val fallbackFile: Path? = None

get: public read-only

File to serve once for missing GET/HEAD paths; relative paths use the process working directory.