UrlFilter class

Constructors

UrlFilter({String? hostContains, String? hostEquals, String? hostPrefix, String? hostSuffix, String? pathContains, String? pathEquals, String? pathPrefix, String? pathSuffix, String? queryContains, String? queryEquals, String? queryPrefix, String? querySuffix, String? urlContains, String? urlEquals, String? urlMatches, String? originAndPathMatches, String? urlPrefix, String? urlSuffix, List<String>? schemes, List<Object>? ports})
UrlFilter.fromJS(UrlFilter _wrapped)

Properties

hashCode int
The hash code for this object.
no setterinherited
hostContains String?
Matches if the host name of the URL contains a specified string. To test whether a host name component has a prefix 'foo', use hostContains: '.foo'. This matches 'www.foobar.com' and 'foo.com', because an implicit dot is added at the beginning of the host name. Similarly, hostContains can be used to match against component suffix ('foo.') and to exactly match against components ('.foo.'). Suffix- and exact-matching for the last components need to be done separately using hostSuffix, because no implicit dot is added at the end of the host name.
getter/setter pair
hostEquals String?
Matches if the host name of the URL is equal to a specified string.
getter/setter pair
hostPrefix String?
Matches if the host name of the URL starts with a specified string.
getter/setter pair
hostSuffix String?
Matches if the host name of the URL ends with a specified string.
getter/setter pair
originAndPathMatches String?
Matches if the URL without query segment and fragment identifier matches a specified regular expression. Port numbers are stripped from the URL if they match the default port number. The regular expressions use the RE2 syntax.
getter/setter pair
pathContains String?
Matches if the path segment of the URL contains a specified string.
getter/setter pair
pathEquals String?
Matches if the path segment of the URL is equal to a specified string.
getter/setter pair
pathPrefix String?
Matches if the path segment of the URL starts with a specified string.
getter/setter pair
pathSuffix String?
Matches if the path segment of the URL ends with a specified string.
getter/setter pair
ports List<Object>?
Matches if the port of the URL is contained in any of the specified port lists. For example [80, 443, [1000, 1200]] matches all requests on port 80, 443 and in the range 1000-1200.
getter/setter pair
queryContains String?
Matches if the query segment of the URL contains a specified string.
getter/setter pair
queryEquals String?
Matches if the query segment of the URL is equal to a specified string.
getter/setter pair
queryPrefix String?
Matches if the query segment of the URL starts with a specified string.
getter/setter pair
querySuffix String?
Matches if the query segment of the URL ends with a specified string.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemes List<String>?
Matches if the scheme of the URL is equal to any of the schemes specified in the array.
getter/setter pair
toJS → UrlFilter
no setter
urlContains String?
Matches if the URL (without fragment identifier) contains a specified string. Port numbers are stripped from the URL if they match the default port number.
getter/setter pair
urlEquals String?
Matches if the URL (without fragment identifier) is equal to a specified string. Port numbers are stripped from the URL if they match the default port number.
getter/setter pair
urlMatches String?
Matches if the URL (without fragment identifier) matches a specified regular expression. Port numbers are stripped from the URL if they match the default port number. The regular expressions use the RE2 syntax.
getter/setter pair
urlPrefix String?
Matches if the URL (without fragment identifier) starts with a specified string. Port numbers are stripped from the URL if they match the default port number.
getter/setter pair
urlSuffix String?
Matches if the URL (without fragment identifier) ends with a specified string. Port numbers are stripped from the URL if they match the default port number.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited