pub struct HandlerConfig {Show 15 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 ignore_visuals: bool,
pub ignore_stylesheets: bool,
pub ignore_javascript: bool,
pub ignore_analytics: 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,
}
Expand description
How to configure the handler
Fields§
§ignore_https_errors: bool
Whether the NetworkManager
s 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: Duration
default request timeout to use
request_intercept: bool
Whether to enable request interception
cache_enabled: bool
Whether to enable cache
ignore_visuals: bool
Whether to ignore visuals.
ignore_stylesheets: bool
Whether to ignore stylesheets.
ignore_javascript: bool
Whether to ignore Javascript only allowing critical framework or lib based rendering.
ignore_analytics: bool
Whether to ignore analytics.
ignore_ads: bool
Whether to ignore ads.
extra_headers: Option<HashMap<String, String>>
Extra headers.
only_html: bool
Only Html.
created_first_target: bool
Created the first target.
intercept_manager: NetworkInterceptManager
The network intercept manager.
Trait Implementations§
Source§impl Clone for HandlerConfig
impl Clone for HandlerConfig
Source§fn clone(&self) -> HandlerConfig
fn clone(&self) -> HandlerConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HandlerConfig
impl Debug for HandlerConfig
Auto Trait Implementations§
impl Freeze for HandlerConfig
impl RefUnwindSafe for HandlerConfig
impl Send for HandlerConfig
impl Sync for HandlerConfig
impl Unpin for HandlerConfig
impl UnwindSafe for HandlerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more