HttpRouteMatch class
An object that represents the requirements for a route to match HTTP requests for a virtual router.
Constructors
-
HttpRouteMatch({required String prefix, List<
HttpRouteHeader> ? headers, HttpMethod? method, HttpScheme? scheme}) -
HttpRouteMatch.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ List<
HttpRouteHeader> ? -
An object that represents the client request headers to match on.
final
- method → HttpMethod?
-
The client request method to match on. Specify only one.
final
- prefix → String
-
Specifies the path to match requests with. This parameter must always start
with
/
, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name ismy-service.local
and you want the route to match requests tomy-service.local/metrics
, your prefix should be/metrics
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheme → HttpScheme?
-
The client request scheme to match on. Specify only one.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited