RuleActionType enum
Describes the kind of action to take if a given RuleCondition matches.
Values
- block → const RuleActionType
-
Block the network request.
const RuleActionType('block')
- redirect → const RuleActionType
-
Redirect the network request.
const RuleActionType('redirect')
- allow → const RuleActionType
-
Allow the network request. The request won't be intercepted if there is an allow rule which matches it.
const RuleActionType('allow')
- upgradeScheme → const RuleActionType
-
Upgrade the network request url's scheme to https if the request is http or ftp.
const RuleActionType('upgradeScheme')
- modifyHeaders → const RuleActionType
-
Modify request/response headers from the network request.
const RuleActionType('modifyHeaders')
- allowAllRequests → const RuleActionType
-
Allow all requests within a frame hierarchy, including the frame request itself.
const RuleActionType('allowAllRequests')
Properties
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
Static Methods
-
fromJS(
String value) → RuleActionType
Constants
-
values
→ const List<
RuleActionType> - A constant List of the values in this enum, in order of their declaration.