Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PathMatch

A PathMatch contains info about how a PathPattern matched on a URL pathname.

interface PathMatch <ParamKey extends string = string> {
params: Params<ParamKey>;
pathname: string;
pathnameBase: string;
pattern: PathPattern;
}

§Type Parameters

§
ParamKey extends string = string
[src]

§Properties

§
params: Params<ParamKey>
[src]

The names and values of dynamic parameters in the URL.

§
pathname: string
[src]

The portion of the URL pathname that was matched.

§
pathnameBase: string
[src]

The portion of the URL pathname that was matched before child routes.

§

The pattern that was used to match.