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

x/hex/src/service/deps.ts>oak.Middleware

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface oak.Middleware
import { type oak } from "https://deno.land/x/hex@0.5.15/src/service/deps.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<unknown>): Promise<unknown> | unknown