Skip to main content
Module

x/dext/deps/mod.ts>oak.Middleware

The Preact Framework for Deno
Latest
interface oak.Middleware
import { type oak } from "https://deno.land/x/dext@0.10.5/deps/mod.ts";
const { Middleware } = oak;

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<void>): Promise<void> | void