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

x/danet/src/deps.ts>Context#send

A Savory web framework for Deno heavily inspired by Nest
Go to Latest
method Context.prototype.send
import { Context } from "https://deno.land/x/danet@1.3.3/src/deps.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.

Parameters

options: ContextSendOptions

Returns

Promise<string | undefined>