Module

x/oak/send.ts>send

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
function send
import { send } from "https://dotland.deno.dev/x/oak@v17.1.2/send.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>