Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

Super-agent driven library for testing Deno HTTP servers.
Latest
method Oak.Context.prototype.send
import { Oak } from "https://deno.land/x/superdeno@4.9.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>