Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oak/mod.ts>RouterMiddleware

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
interface RouterMiddleware
import { type RouterMiddleware } from "https://deno.land/x/oak@v12.1.0/mod.ts";

Type Parameters

R extends string
optional
P extends RouteParams<R> = RouteParams<R>
optional
S extends State = Record<string, any>

Call Signatures

(context: RouterContext<R, P, S>, next: () => Promise<unknown>): Promise<unknown> | unknown

Properties

optional
param: keyof P

For route parameter middleware, the param key for this parameter will be set.

optional
router: Router<any>