Struct webpage::WebpageOptions [−][src]
pub struct WebpageOptions {
pub allow_insecure: bool,
pub follow_location: bool,
pub max_redirections: u32,
pub timeout: Duration,
pub useragent: String,
}
Expand description
Configuration options
Fields
allow_insecure: bool
Allow fetching over invalid and/or self signed HTTPS connections [false]
follow_location: bool
Follow HTTP redirects [true]
max_redirections: u32
Max number of redirects to follow [5]
timeout: Duration
Timeout for the HTTP request [10 secs]
useragent: String
User agent string used for the request [webpage-rs - https://crates.io/crates/webpage]