ScraperConfig constructor

const ScraperConfig({
  1. Duration timeout = const Duration(seconds: 30),
  2. int maxContentSize = 10 * 1024 * 1024,
  3. Map<String, String> headers = const {},
  4. String userAgent = 'flutter_scrapper/0.1.0',
  5. bool followRedirects = true,
  6. int maxRedirects = 5,
  7. bool verifySSL = true,
  8. RetryConfig retryConfig = const RetryConfig(),
})

Implementation

const ScraperConfig({
  this.timeout = const Duration(seconds: 30),
  this.maxContentSize = 10 * 1024 * 1024, // 10MB
  this.headers = const {},
  this.userAgent = 'flutter_scrapper/0.1.0',
  this.followRedirects = true,
  this.maxRedirects = 5,
  this.verifySSL = true,
  this.retryConfig = const RetryConfig(),
});