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

x/superdeno/test/deps.ts>Oak.Context#send

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
method Oak.Context.prototype.send
import { Oak } from "https://deno.land/x/superdeno@4.8.0/test/deps.ts";
const { Context } = Oak;

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>