Skip to main content
Module

x/file_server_plus/mod.ts>ServeFileOptions

`deno` static file webserver, clone of `file_server.ts`, PLUS an additional final "404 handler" to run arbitrary JS/TS
Go to Latest
interface ServeFileOptions
import { type ServeFileOptions } from "https://deno.land/x/file_server_plus@0.2.2/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.