RuleActionType enum

Describes the kind of action to take if a given RuleCondition matches.

Inheritance

Constructors

RuleActionType(String value)
const

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

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJS String
no setter
value String
final

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.