The HTTP request path decomposed into variables and segments based on a RouteSpecification.
After passing through a Router, a Request will have an instance of HTTPRequestPath in Request.path. Any variable path parameters will be available in variables.
For each request passes through a router, a new instance of this type is created specific to that request.
Constructors
- HTTPRequestPath(RouteSpecification specification, List<String> requestSegments)
-
Default constructor for HTTPRequestPath.
Properties
- orderedVariableNames → List<String>
-
An ordered list of variable names (the keys in variables) based on their position in the path.
read / write - remainingPath → String
-
If a match specification uses the 'match all' token (*), the part of the path matched by that token will be stored in this property.
read / write - segments → List<String>
-
A list of the segments in a matched path.
read / write - variables → Map<String, String>
-
A
Map
of path variables.read / write - hashCode → int
-
The hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited