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

PathPattern

A PathPattern is used to match on some portion of a URL pathname.

interface PathPattern <Path extends string = string> {
caseSensitive?: boolean;
end?: boolean;
path: Path;
}

§Type Parameters

§
Path extends string = string
[src]

§Properties

§
caseSensitive?: boolean
[src]

Should be true if the static portions of the path should be matched in the same case.

§
end?: boolean
[src]

Should be true if this pattern should match the entire URL pathname.

§
path: Path
[src]

A string to match against a URL pathname. May contain :id-style segments to indicate placeholders for dynamic parameters. May also end with /* to indicate matching the rest of the URL pathname.