import { Layer } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v17.1.3/router.ts?p=prototype.all&s=Layer";
An internal class used to group together middleware when using multiple middlewares with a router.
Constructors
new
Layer(path: string,
methods: HTTPMethods[],
middleware: RouterMiddleware<R, P, S> | RouterMiddleware<R, P, S>[],
unnamed 3?: LayerOptions,
Type Parameters
R extends string[src]
optional
P extends RouteParams<R> = RouteParams<R>[src]Properties
methods: HTTPMethods[][src]
optional
name: string[src]path: string[src]
stack: RouterMiddleware<R, P, S>[][src]
Methods
param(param: string, fn: RouterParamMiddleware<any, any, any>): this[src]
params(captures: string[], existingParams?: RouteParams<R>): RouteParams<R>[src]
url(params?: RouteParams<R>, options?: UrlOptions): string[src]
[Symbol.for("Deno.customInspect")](inspect: (value: unknown) => string): string[src]
[Symbol.for("nodejs.util.inspect.custom")](): any[src]
depth: number,
options: any,
inspect: (value: unknown, options?: unknown) => string,