The rule's ID.
IDs are auto-assigned when the rule is registered, in increasing order.
This function is called if the rule matched, and was selected as the "best match". This function handles the rule match event.
See UrlRuleHandlerFn for details
This function should match the url and return the match details
See UrlRuleMatchFn for details
The rule's priority (defaults to 0).
This can be used to explicitly modify the rule's priority. Higher numbers are higher priority.
The type of the rule
The priority of a given match.
Sometimes more than one UrlRule might have matched. This method is used to choose the best match.
If multiple rules matched, each rule's matchPriority
is called with the value from match.
The rule with the highest matchPriority
has its handler called.
Generated using TypeDoc
The interface for a URL Rule
If you are creating a rule for use with UrlRules.rule, it should implement this interface.