x/oak/send.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function send
import { send } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/send.ts?s=send";

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>[src]
path: string[src]
optional
options: SendOptions
[src]

Returns

Promise<string | undefined>[src]