filter method

  1. @override
void filter(
  1. Pattern uri,
  2. RequestFilter filter, {
  3. bool preceding = false,
})
override

Maps the given URI to the given filter. *

    • uri: a regular expression used to match the request URI.
    • filter: the filter. If it 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

@override
void filter(Pattern uri, RequestFilter filter, {bool preceding = false}) {
  _map(_filterMapping, uri, filter, preceding);
}