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

x/superdeno/test/deps.ts>Oak.RouterParamMiddleware

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
interface Oak.RouterParamMiddleware
import { type Oak } from "https://deno.land/x/superdeno@4.8.0/test/deps.ts";
const { RouterParamMiddleware } = Oak;

Middleware that will be called by the router when handling a specific parameter, which the middleware will be called when a request matches the route parameter.

Type Parameters

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

Call Signatures

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

Properties

optional
router: Router<any>