pub struct HarReplayOptions {
pub url_filter: Option<UrlPattern>,
pub strict: bool,
pub update: bool,
pub update_content: UpdateContentMode,
pub update_timings: TimingMode,
pub use_original_timing: bool,
}Expand description
Options for HAR replay.
Fields§
§url_filter: Option<UrlPattern>URL pattern to filter which requests use HAR replay. Only URLs matching this pattern will be replayed from the HAR.
strict: boolIf true, requests that don’t match any HAR entry will fail. If false, unmatched requests continue normally.
update: boolIf true, unmatched requests will be recorded to update the HAR file.
update_content: UpdateContentModeHow to handle content in update mode.
update_timings: TimingModeHow to handle timings in update mode.
use_original_timing: boolIf true, simulate the original timing delays from the HAR.
Implementations§
Source§impl HarReplayOptions
impl HarReplayOptions
Sourcepub fn url<M: Into<UrlPattern>>(self, pattern: M) -> Self
pub fn url<M: Into<UrlPattern>>(self, pattern: M) -> Self
Set URL filter pattern.
Sourcepub fn update_content(self, mode: UpdateContentMode) -> Self
pub fn update_content(self, mode: UpdateContentMode) -> Self
Set how to handle content in update mode.
Sourcepub fn update_timings(self, mode: TimingMode) -> Self
pub fn update_timings(self, mode: TimingMode) -> Self
Set how to handle timings in update mode.
Sourcepub fn use_original_timing(self, use_timing: bool) -> Self
pub fn use_original_timing(self, use_timing: bool) -> Self
Enable timing simulation from HAR entries.
Trait Implementations§
Source§impl Clone for HarReplayOptions
impl Clone for HarReplayOptions
Source§fn clone(&self) -> HarReplayOptions
fn clone(&self) -> HarReplayOptions
Returns a duplicate 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 HarReplayOptions
impl Debug for HarReplayOptions
Auto Trait Implementations§
impl Freeze for HarReplayOptions
impl RefUnwindSafe for HarReplayOptions
impl Send for HarReplayOptions
impl Sync for HarReplayOptions
impl Unpin for HarReplayOptions
impl UnwindSafe for HarReplayOptions
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