x/plug/test_deps.ts

🔌 Deno plugin management library
Latest
function serveFile
import { serveFile } from "https://deno.land/x/plug@0.5.2/test_deps.ts?s=serveFile";

Returns an HTTP Response with the requested file as the body.

Parameters

req: Request[src]

The server request context used to cleanup the file handle.

filePath: string[src]

Path of the file to serve.

Returns

Promise<Response>[src]