DVBotChallenge class

A challenge in front of an action.

It fails closed: a provider that throws or times out is a challenge not passed, because a check that lets requests through whenever the provider is unreachable is bypassed by making it unreachable.

Constructors

DVBotChallenge(DVBotProtection protection, {String header = 'x-dv-challenge', String? action})
const

Properties

action → String?
final
hashCode → int
The hash code for this object.
no setterinherited
The request header the challenge token travels in.
final
protection → DVBotProtection
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

check(String? token, {String? source}) → Future<DVBotVerdict>
middleware() → Middleware
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