interface ServeFileOptions

Passed to serveFile by its caller, which knows the file's type and how long it may be cached.

Properties

mime: string
optional
ranges: boolean

Answers a single Range: bytes=… with a 206. The files route sets it, so that audio and video can seek.

Usage

import { type ServeFileOptions } from "api/lib/serve-file.ts";