Skip to main content
Module

x/dext/deps/mod.ts>oak.send

The Preact Framework for Deno
Latest
function oak.send
import { oak } from "https://deno.land/x/dext@0.10.5/deps/mod.ts";
const { send } = oak;

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>