#[non_exhaustive]pub struct ContinueOptions {
pub headers: Option<HashMap<String, String>>,
pub method: Option<String>,
pub post_data: Option<String>,
pub post_data_bytes: Option<Vec<u8>>,
pub url: Option<String>,
}Expand description
Options for continuing a request with modifications.
Allows modifying headers, method, post data, and URL when continuing a route.
Used by both continue_() and fallback().
See: https://playwright.dev/docs/api/class-route#route-continue
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.headers: Option<HashMap<String, String>>Modified request headers
method: Option<String>Modified request method (GET, POST, etc.)
post_data: Option<String>Modified POST data as string
post_data_bytes: Option<Vec<u8>>Modified POST data as bytes
url: Option<String>Modified request URL (must have same protocol)
Implementations§
Source§impl ContinueOptions
impl ContinueOptions
Sourcepub fn builder() -> ContinueOptionsBuilder
pub fn builder() -> ContinueOptionsBuilder
Creates a new builder for ContinueOptions
Trait Implementations§
Source§impl Clone for ContinueOptions
impl Clone for ContinueOptions
Source§fn clone(&self) -> ContinueOptions
fn clone(&self) -> ContinueOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContinueOptions
impl Debug for ContinueOptions
Source§impl Default for ContinueOptions
impl Default for ContinueOptions
Source§fn default() -> ContinueOptions
fn default() -> ContinueOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContinueOptions
impl RefUnwindSafe for ContinueOptions
impl Send for ContinueOptions
impl Sync for ContinueOptions
impl Unpin for ContinueOptions
impl UnsafeUnpin for ContinueOptions
impl UnwindSafe for ContinueOptions
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