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

x/oak/context.ts>Context#send

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
method Context.prototype.send
import { Context } from "https://deno.land/x/oak@v17.1.2/context.ts";

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>