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

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

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Go to Latest
interface oak.Middleware
import { type oak } from "https://deno.land/x/hex@0.6.3/src/fw/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