HeadlessBrowserConfig constructor
const
HeadlessBrowserConfig({
- String? userAgent,
- bool javaScriptEnabled = true,
- bool domStorageEnabled = true,
- bool mixedContentMode = true,
- bool cacheEnabled = true,
- int timeoutMillis = 30000,
- bool blockImages = false,
- bool blockPopups = true,
- Map<
String, String> ? customHeaders, - bool clearCookies = false,
- bool clearCache = false,
- bool ignoreSSLErrors = false,
- bool loggingEnabled = kDebugMode,
- String? url,
- Map<
String, String> ? headers, - int? timeout,
- bool waitForNetworkIdle = true,
- bool waitForDomContentLoaded = true,
Creates a new HeadlessBrowserConfig instance
Implementation
const HeadlessBrowserConfig({
this.userAgent,
this.javaScriptEnabled = true,
this.domStorageEnabled = true,
this.mixedContentMode = true,
this.cacheEnabled = true,
this.timeoutMillis = 30000,
this.blockImages = false,
this.blockPopups = true,
this.customHeaders,
this.clearCookies = false,
this.clearCache = false,
this.ignoreSSLErrors = false,
this.loggingEnabled = kDebugMode,
this.url,
this.headers,
this.timeout,
this.waitForNetworkIdle = true,
this.waitForDomContentLoaded = true,
});