urlFilter property
The pattern which is matched against the network request url. Supported constructs:
'*' : Wildcard: Matches any number of characters.
'|' : Left/right anchor: If used at either end of the pattern, specifies the beginning/end of the url respectively.
'||' : Domain name anchor: If used at the beginning of the pattern, specifies the start of a (sub-)domain of the URL.
'^' : Separator character: This matches anything except a letter, a digit or one of the following: _ - . %. This can also match the end of the URL.
Therefore urlFilter
is composed of the following parts:
(optional Left/Domain name anchor) + pattern + (optional Right anchor).
If omitted, all urls are matched. An empty string is not allowed.
A pattern beginning with ||*
is not allowed. Use
*
instead.
Note: Only one of urlFilter
or regexFilter
can
be specified.
Note: The urlFilter
must be composed of only ASCII
characters. This is matched against a url where the host is encoded in
the punycode format (in case of internationalized domains) and any other
non-ascii characters are url encoded in utf-8.
For example, when the request url is
http://abc.рф?q=ф, the
urlFilter
will be matched against the url
http://abc.xn--p1ai/?q=%D1%84.
Implementation
String? get urlFilter => _wrapped.urlFilter;
Implementation
set urlFilter(String? v) {
_wrapped.urlFilter = v;
}