x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
interface Middleware
import { type Middleware } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?p=prototype.allowedMethods&s=Middleware";

Middleware are functions which are chained together to deal with requests.

Type Parameters

optional
S extends State = Record<string, any>
[src]
optional
T extends Context = Context<S>
[src]

Call Signatures

(context: T, next: () => Promise<unknown>): Promise<unknown> | unknown[src]