Skip to main content
Module

x/oak/middleware.ts

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Extremely Popular
Latest
import * as oak from "https://deno.land/x/oak@v16.0.0/middleware.ts";

The internal middleware interfaces and abstractions used by oak.

Outside of the Middleware interface, items are not generally used by end users, but compose can be used for advanced use cases.

Functions

Compose multiple middleware functions into a single middleware function.

A type guard that returns true if the value is MiddlewareObject.

Interfaces

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

Middleware objects allow encapsulation of middleware along with the ability to initialize the middleware upon listen.

Type Aliases

Type that represents Middleware or MiddlewareObject.

A function for chaining middleware.