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

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

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

Type Parameters

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

Properties

methods: HTTPMethods[]

The HTTP methods that this route handles.

middleware: RouterMiddleware<R, P, S>[]

The middleware that will be applied to this route.

optional
name: string

An optional name for the route.

options: LayerOptions

Options that were used to create the route.

paramNames: (keyof P)[]

The parameters that are identified in the route that will be parsed out on matched requests.

path: string

The path that this route manages.

regexp: RegExp

The regular expression used for matching and parsing parameters for the route.