x/oak/context.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
method Context.prototype.send
import { Context } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.3/context.ts?p=prototype.send&s=Context";

Asynchronously fulfill a response with a file from the local file system.

If the options.path is not supplied, the file to be sent will default to this .request.url.pathname.

Requires Deno read permission.

Returns

Promise<string | undefined>[src]