ServeFileOptions

import { ServeFileOptions } from "jsr:@ende/http";

interface

interface ServeFileOptions

Options for serveFile.

Properties

etagAlgorithm

etagAlgorithm?: AlgorithmIdentifier

The algorithm to use for generating the ETag.

Default: "SHA-256"

fileInfo

fileInfo?: Ende.FileInfo

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

Defaults to the result of calling Ende.stat with the provided filePath.

Source