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

x/hex/src/service/deps.ts>oak.send

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function oak.send
import { oak } from "https://deno.land/x/hex@0.5.15/src/service/deps.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>