map abstract method
Maps the given URI to the given handler. *
-
uri
- a regular expression used to match the request URI.
- If you can name a group by prefix with a name, such as
'/dead-link(info:.*)'
. -
handler
- the handler for handling the request, or another URI that this request
- will be forwarded to. If the value is a URI and the key has named groups, the URI can
- refer to the group with
(the_group_name)
. - For example:
'/dead-link(info:.*)': '/new-link(info)'
. - if
handler
is null, it means removal. -
preceding
- whether to make the mapping preceding any previous mappings.
- In other words, if true, this mapping will be interpreted first.
Implementation
void map(String uri, handler, {bool preceding = false});