Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/opine/src/response.ts>Response#sendFile

Minimalist web framework for Deno ported from ExpressJS.
Latest
method Response.prototype.sendFile
import { Response } from "https://deno.land/x/opine@2.3.4/src/response.ts";

Transfer the file at the given path.

Automatically sets the Content-Type response header field.

Parameters

path: string
optional
options: any = [UNSUPPORTED]

Returns

Promise<this | void>