pub struct ContinueRequestParamsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> ContinueRequestParamsBuilder<'a>
impl<'a> ContinueRequestParamsBuilder<'a>
Sourcepub fn url(self, url: impl Into<Cow<'a, str>>) -> Self
pub fn url(self, url: impl Into<Cow<'a, str>>) -> Self
If set, the request url will be modified in a way that’s not observable by page.
Sourcepub fn method(self, method: impl Into<Cow<'a, str>>) -> Self
pub fn method(self, method: impl Into<Cow<'a, str>>) -> Self
If set, the request method is overridden.
Sourcepub fn post_data(self, post_data: impl Into<Cow<'a, str>>) -> Self
pub fn post_data(self, post_data: impl Into<Cow<'a, str>>) -> Self
If set, overrides the post data in the request. (Encoded as a base64 string when passed over JSON)
Sourcepub fn headers(self, headers: Vec<HeaderEntry<'a>>) -> Self
pub fn headers(self, headers: Vec<HeaderEntry<'a>>) -> Self
If set, overrides the request headers. Note that the overrides do not extend to subsequent redirect hops, if a redirect happens. Another override may be applied to a different request produced by a redirect.
Sourcepub fn intercept_response(self, intercept_response: bool) -> Self
pub fn intercept_response(self, intercept_response: bool) -> Self
If set, overrides response interception behavior for this request.
pub fn build(self) -> ContinueRequestParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContinueRequestParamsBuilder<'a>
impl<'a> RefUnwindSafe for ContinueRequestParamsBuilder<'a>
impl<'a> Send for ContinueRequestParamsBuilder<'a>
impl<'a> Sync for ContinueRequestParamsBuilder<'a>
impl<'a> Unpin for ContinueRequestParamsBuilder<'a>
impl<'a> UnsafeUnpin for ContinueRequestParamsBuilder<'a>
impl<'a> UnwindSafe for ContinueRequestParamsBuilder<'a>
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