PathMatcher class

A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service will be used.


PathMatcher.fromJson(Map _json)


defaultService ↔ String
The full or partial URL to the BackendService resource. This will be used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: [...]
read / write
description ↔ String
An optional description of this resource. Provide this property when you create the resource.
read / write
name ↔ String
The name to which this PathMatcher is referred by the HostRule.
read / write
pathRules ↔ List<PathRule>
The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that's required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c / * will match before /a/b / * irrespective of the order in which those paths appear in this list. Only one of pathRules or routeRules must be set.
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


toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator.