Interface ServeFileOptions

Options for serveFile.

interface ServeFileOptions {
    etagAlgorithm?: AlgorithmIdentifier;
    fileInfo?: FileInfo;
}

Properties

etagAlgorithm?: AlgorithmIdentifier

The algorithm to use for generating the ETag.

{"SHA-256"}
fileInfo?: FileInfo

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

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