pub struct ResolvedFetchParams {
pub google_search: bool,
pub timeout_ms: f64,
pub wait_ms: u64,
pub extra_headers: HashMap<String, String>,
pub disable_resources: bool,
pub network_idle: bool,
pub load_dom: bool,
pub wait_selector: Option<String>,
pub wait_selector_state: WaitState,
pub blocked_domains: HashSet<String>,
pub solve_cloudflare: bool,
}Expand description
Fully resolved fetch parameters produced by merging FetchParams with BrowserConfig.
Unlike FetchParams (which is all Options), every field here has a concrete
value. This struct is constructed internally by FetchParams::merge_with_config
and consumed by the session’s navigation logic. You will not normally create one
yourself.
Fields§
§google_search: boolWhether to prepend a Google-search warm-up navigation.
timeout_ms: f64Navigation timeout in milliseconds.
wait_ms: u64Post-load sleep delay in milliseconds.
extra_headers: HashMap<String, String>Extra HTTP headers to send with the request.
disable_resources: boolBlock heavyweight resource types when true.
network_idle: boolWait for the network-idle event after navigation.
load_dom: boolWait for DOMContentLoaded after navigation.
wait_selector: Option<String>CSS selector to wait for before returning page content.
wait_selector_state: WaitStateRequired state of the wait selector.
blocked_domains: HashSet<String>Domains whose requests should be blocked.
solve_cloudflare: boolAttempt to solve Cloudflare challenges when true.
Trait Implementations§
Source§impl Clone for ResolvedFetchParams
impl Clone for ResolvedFetchParams
Source§fn clone(&self) -> ResolvedFetchParams
fn clone(&self) -> ResolvedFetchParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more