Skip to main content
Module

x/file_server_plus/mod.ts>ServeFileOptions

`deno` static file webserver clone of `file_server.ts`, PLUS optional command line arg: `--handler FILE.ts` for "404 handler" ability to run arbitrary JS/TS
Go to Latest
interface ServeFileOptions
import { type ServeFileOptions } from "https://deno.land/x/file_server_plus@0.2.1/mod.ts";

Interface for serveFile options.

Properties

optional
etagAlgorithm: EtagAlgorithm

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

optional
fileInfo: Deno.FileInfo

An optional FileInfo object returned by Deno.stat. It is used for optimization purposes.