Skip to main content
function serveFile
import { serveFile } from "https://deno.land/x/sono@v1.1/deps.ts";

Returns an HTTP Response with the requested file as the body

Parameters

The server request context used to cleanup the file handle

filePath: string

Path of the file to serve