PathMatchResult

Contains the result of attempting to match a URL to a path pattern. This includes whether there is a match at all, and if so, a set of path parameters that were parsed from the URL, according to the path pattern.

Members

Functions

getPathParam
string getPathParam(string name)

Gets the string value of a specified path parameter.

getPathParamAs
T getPathParamAs(string name, T defaultValue)

Gets a specified path parameter's value converted to the specified type.

opCast
T opCast()

Converts the result to a boolean value. This is synonymous to matches.

pathParamsAsMap
immutable(string[string]) pathParamsAsMap()

Gets the path parameters as a string-to-string mapping.

Variables

matches
bool matches;

Whether the URL matches the path pattern.

pathParams
PathParam[] pathParams;

The list of all path parameters that were parsed from the URL.

Meta