std/http/file_server.ts

Deno standard library
Go to Latest
interface ServeDirOptions
import { type ServeDirOptions } from "https://deno.land/std@0.147.0/http/file_server.ts?s=ServeDirOptions";

Interface for serveDir options.

Properties

optional
fsRoot: string
[src]

Serves the files under the given directory root. Defaults to your current directory.

optional
urlRoot: string
[src]

Specified that part is stripped from the beginning of the requested pathname.

optional
showDirListing: boolean
[src]

Enable directory listing. Defaults to false.

optional
showDotfiles: boolean
[src]

Serves dotfiles. Defaults to false.

optional
enableCors: boolean
[src]

Enable CORS via the "Access-Control-Allow-Origin" header. Defaults to false.

optional
quiet: boolean
[src]

Do not print request level logs. Defaults to false. Defaults to false.

optional
etagAlgorithm: EtagAlgorithm
[src]

The algorithm to use for generating the ETag. Defaults to "fnv1a".