Skip to main content
Module

x/oak_rate_limit/deps.ts>Middleware

Rate-limiting middleware for Oak server on Deno
Latest
interface Middleware
import { type Middleware } from "https://deno.land/x/oak_rate_limit@v0.1.1/deps.ts";

Middleware are functions which are chained together to deal with requests.

Type Parameters

optional
S extends State = Record<string, any>
optional
T extends Context = Context<S>

Call Signatures

(context: T, next: () => Promise<unknown>): Promise<unknown> | unknown