Skip to main content
Module

x/oak_sessions/deps.ts>send

Session middleware for Oak
Latest
function send
import { send } from "https://deno.land/x/oak_sessions@v4.1.11/deps.ts";

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

Requires Deno read permission for the root directory.

Parameters

unnamed 0: Context<any>
path: string
optional
options: SendOptions = [UNSUPPORTED]

Returns

Promise<string | undefined>