class StaticFileOptions
source · line 57public
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
public fun StaticFileOptions.copy(configure: StaticFileOptionsBuilder.() -> Unit = {}): StaticFileOptions· scoop:scoop.http.server:0.1.0
property indexDocument
source · line 61public
public val indexDocument: String? = None
get: public read-only
A fixed index filename, attempted only for directories; None disables indexes.
property pathParameter
source · line 59public
public val pathParameter: String = "path"
get: public read-only
Name of the route's terminal wildcard parameter.
property fileOptions
source · line 63public
public val fileOptions: FileResponseOptions = fileResponseOptions()
get: public read-only
Options shared by the files served by this handler.
property fallbackFile
source · line 65public
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.