PathParam

Represents a path parameter that was parsed from a URL when matching it against a pattern.

@safe immutable
struct PathParam {}

Members

Functions

getAs
T getAs()

Gets the value of this path parameter, converted to the specified template type. Note that this may throw a std.conv.ConvException if you have not specified a type for validation when parsing.

Variables

name
string name;

The name of the path parameter.

value
string value;

The raw value of the path parameter.

Meta