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

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

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

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>