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

x/danet/src/deps.ts>Middleware

A Savory web framework for Deno heavily inspired by Nest
Go to Latest
interface Middleware
import { type Middleware } from "https://deno.land/x/danet@1.2.2/src/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