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

std/http/mod.ts>ServeFileOptions

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface ServeFileOptions
import { type ServeFileOptions } from "https://deno.land/std@0.220.0/http/mod.ts";

Interface for serveFile options.

Properties

optional
etagAlgorithm: AlgorithmIdentifier = "SHA-256"

The algorithm to use for generating the ETag.

optional
fileInfo: Deno.FileInfo

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