Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface ServeFileOptions
import { type ServeFileOptions } from "https://deno.land/x/frugal@0.3.0/dep/std/http.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.