Skip to main content
The Deno 2 Release Candidate is 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.7.3/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