Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function oak.send
import { oak } from "https://deno.land/x/hex@0.6.5/src/fw/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>