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

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

Fast, minimalist web framework for Deno ported from ExpressJS.
Very Popular
Go to Latest
method Response.prototype.sendFile
import { Response } from "https://deno.land/x/opine@2.2.0/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>