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

x/deno_nest/modules/oak/mod.ts>send

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
function send
import { send } from "https://deno.land/x/deno_nest@v3.7.1/modules/oak/mod.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>