ProxyValidationOptions class
Options for proxy validation
Constructors
- ProxyValidationOptions.new({String? testUrl, int timeout = 10000, bool updateScore = true, bool validateHttps = false, bool validateSocks = false, bool validateWebsockets = false, bool logErrors = true, bool categorizeErrors = true})
-
Creates a new ProxyValidationOptions with the given parameters
const
Properties
- categorizeErrors → bool
-
Whether to categorize errors by type
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logErrors → bool
-
Whether to log validation errors
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- testUrl → String?
-
The URL to use for testing the proxy
final
- timeout → int
-
The timeout in milliseconds
final
- updateScore → bool
-
Whether to update the proxy's score based on the validation result
final
- validateHttps → bool
-
Whether to validate HTTPS support
final
- validateSocks → bool
-
Whether to validate SOCKS support
final
- validateWebsockets → bool
-
Whether to validate WebSocket support
final
Methods
-
copyWith(
{String? testUrl, int? timeout, bool? updateScore, bool? validateHttps, bool? validateSocks, bool? validateWebsockets, bool? logErrors, bool? categorizeErrors}) → ProxyValidationOptions - Creates a copy of this ProxyValidationOptions with the given parameters
-
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