pub struct HandlerConfig {Show 20 fields
pub ignore_https_errors: bool,
pub viewport: Option<Viewport>,
pub context_ids: Vec<BrowserContextId>,
pub request_timeout: Duration,
pub request_intercept: bool,
pub cache_enabled: bool,
pub service_worker_enabled: bool,
pub ignore_visuals: bool,
pub ignore_stylesheets: bool,
pub ignore_javascript: bool,
pub ignore_analytics: bool,
pub ignore_prefetch: bool,
pub ignore_ads: bool,
pub extra_headers: Option<HashMap<String, String>>,
pub only_html: bool,
pub created_first_target: bool,
pub intercept_manager: NetworkInterceptManager,
pub max_bytes_allowed: Option<u64>,
pub whitelist_patterns: Option<Vec<String>>,
pub blacklist_patterns: Option<Vec<String>>,
}Expand description
How to configure the handler
Fields§
§ignore_https_errors: boolWhether the NetworkManagers should ignore https errors
viewport: Option<Viewport>Window and device settings
context_ids: Vec<BrowserContextId>Context ids to set from the get go
request_timeout: Durationdefault request timeout to use
request_intercept: boolWhether to enable request interception
cache_enabled: boolWhether to enable cache
service_worker_enabled: boolWhether to enable Service Workers
ignore_visuals: boolWhether to ignore visuals.
ignore_stylesheets: boolWhether to ignore stylesheets.
ignore_javascript: boolWhether to ignore Javascript only allowing critical framework or lib based rendering.
ignore_analytics: boolWhether to ignore analytics.
ignore_prefetch: boolIgnore prefetch request. Defaults to true.
ignore_ads: boolWhether to ignore ads.
extra_headers: Option<HashMap<String, String>>Extra headers.
only_html: boolOnly Html.
created_first_target: boolCreated the first target.
intercept_manager: NetworkInterceptManagerThe network intercept manager.
max_bytes_allowed: Option<u64>The max bytes to receive.
whitelist_patterns: Option<Vec<String>>Optional per-run/per-site whitelist of URL substrings (scripts/resources).
blacklist_patterns: Option<Vec<String>>Optional per-run/per-site blacklist of URL substrings (scripts/resources).
Trait Implementations§
Source§impl Clone for HandlerConfig
impl Clone for HandlerConfig
Source§fn clone(&self) -> HandlerConfig
fn clone(&self) -> HandlerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more