pub struct RouteFromHarOptions {
pub url: Option<String>,
pub not_found: Option<String>,
pub update: Option<bool>,
pub update_content: Option<String>,
pub update_mode: Option<String>,
}Expand description
Options for page.route_from_har() and context.route_from_har().
See: https://playwright.dev/docs/api/class-page#page-route-from-har
Fields§
§url: Option<String>URL glob pattern — only requests matching this pattern are served from the HAR file. All requests are intercepted when omitted.
not_found: Option<String>Policy for requests not found in the HAR file.
"abort"(default) — terminate the request with a network error."fallback"— pass the request through to the next handler (or network).
update: Option<bool>When true, record new network activity into the HAR file instead of
replaying existing entries. Defaults to false.
update_content: Option<String>Content storage strategy used when update is true.
"embed"(default) — inline base64-encoded content in the HAR."attach"— store content as separate files alongside the HAR.
update_mode: Option<String>Recording detail level used when update is true.
"minimal"(default) — omit timing, cookies, and security info."full"— record everything.
Trait Implementations§
Source§impl Clone for RouteFromHarOptions
impl Clone for RouteFromHarOptions
Source§fn clone(&self) -> RouteFromHarOptions
fn clone(&self) -> RouteFromHarOptions
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 RouteFromHarOptions
impl Debug for RouteFromHarOptions
Source§impl Default for RouteFromHarOptions
impl Default for RouteFromHarOptions
Source§fn default() -> RouteFromHarOptions
fn default() -> RouteFromHarOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RouteFromHarOptions
impl RefUnwindSafe for RouteFromHarOptions
impl Send for RouteFromHarOptions
impl Sync for RouteFromHarOptions
impl Unpin for RouteFromHarOptions
impl UnsafeUnpin for RouteFromHarOptions
impl UnwindSafe for RouteFromHarOptions
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