Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_http_proxy/test/deps.ts>Oak.RouterMiddleware

Proxy middleware for Deno Oak HTTP servers. 🐿 🦕
Latest
interface Oak.RouterMiddleware
import { type Oak } from "https://deno.land/x/oak_http_proxy@2.3.0/test/deps.ts";
const { RouterMiddleware } = Oak;

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>