Module

x/oak/middleware.ts>Middleware

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Go to Latest
interface Middleware
import { type Middleware } from "https://dotland.deno.dev/x/oak@14.2.0/middleware.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: Next): Promise<unknown> | unknown