ScraperConfig class
Configuration options for the MobileScraper
Constructors
-
ScraperConfig.new({Duration timeout = const Duration(seconds: 30), int maxContentSize = 10 * 1024 * 1024, Map<
String, String> headers = const {}, String userAgent = 'flutter_scrapper/0.1.0', bool followRedirects = true, int maxRedirects = 5, bool verifySSL = true, RetryConfig retryConfig = const RetryConfig()}) -
const
Properties
- followRedirects → bool
-
Whether to follow redirects (default: true)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Custom headers to include in requests
final
- maxContentSize → int
-
Maximum content size in bytes (default: 10MB)
final
- maxRedirects → int
-
Maximum number of redirects to follow (default: 5)
final
- retryConfig → RetryConfig
-
Request retry configuration
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
Request timeout duration (default: 30 seconds)
final
- userAgent → String
-
User agent string
final
- verifySSL → bool
-
Whether to verify SSL certificates (default: true)
final
Methods
-
copyWith(
{Duration? timeout, int? maxContentSize, Map< String, String> ? headers, String? userAgent, bool? followRedirects, int? maxRedirects, bool? verifySSL, RetryConfig? retryConfig}) → ScraperConfig - Copy with modifications
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultConfig → const ScraperConfig
- Default configuration