Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cav/deps.ts>fileServer.ServeFileOptions

A server framework for Deno
Go to Latest
interface fileServer.ServeFileOptions
import { type fileServer } from "https://deno.land/x/cav@0.2.3/deps.ts";
const { ServeFileOptions } = fileServer;

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.