Skip to main content
Module

x/oak_rate_limit/deps.ts>Context#send

Rate-limiting middleware for Oak server on Deno
Latest
method Context.prototype.send
import { Context } from "https://deno.land/x/oak_rate_limit@v0.1.1/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>