Skip to main content
Module

x/oak_sessions/deps.ts>Context#send

Session middleware for Oak
Go to Latest
method Context.prototype.send
import { Context } from "https://deno.land/x/oak_sessions@v4.0.4/deps.ts";

Asynchronously fulfill a response with a file from the local file system.

If the options.path is not supplied, the file to be sent will default to this .request.url.pathname.

Requires Deno read permission.

Returns

Promise<string | undefined>