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

x/oak_nest/mod.ts>Context#send

Refer to nestjs to realize some common functions for Deno
Go to Latest
method Context.prototype.send
Re-export
import { Context } from "https://deno.land/x/oak_nest@v1.13.18/mod.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>