pub struct RequestOverrides {
pub url: Option<String>,
pub method: Option<String>,
pub headers: Option<Vec<(String, String)>>,
pub post_data: Option<Vec<u8>>,
}Expand description
Per-field overrides for Fetch.continueRequest.
All fields are optional — None means “leave Chrome’s original value
unchanged”. Use Default to start with an empty override set.
Fields§
§url: Option<String>Replace the request URL.
method: Option<String>Replace the HTTP method.
headers: Option<Vec<(String, String)>>Replace the full header set (CDP semantics: this is replacement, not merge — include every header you want sent). Order is preserved on the wire.
post_data: Option<Vec<u8>>Replace the request body.
Trait Implementations§
Source§impl Clone for RequestOverrides
impl Clone for RequestOverrides
Source§fn clone(&self) -> RequestOverrides
fn clone(&self) -> RequestOverrides
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 RequestOverrides
impl Debug for RequestOverrides
Source§impl Default for RequestOverrides
impl Default for RequestOverrides
Source§fn default() -> RequestOverrides
fn default() -> RequestOverrides
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestOverrides
impl RefUnwindSafe for RequestOverrides
impl Send for RequestOverrides
impl Sync for RequestOverrides
impl Unpin for RequestOverrides
impl UnsafeUnpin for RequestOverrides
impl UnwindSafe for RequestOverrides
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