pub struct ContinueRequestBuilder { /* private fields */ }Expand description
Builder for ContinueRequest.
Implementations§
Source§impl ContinueRequestBuilder
impl ContinueRequestBuilder
Sourcepub fn request_id<VALUE: Into<RequestId>>(&mut self, value: VALUE) -> &mut Self
pub fn request_id<VALUE: Into<RequestId>>(&mut self, value: VALUE) -> &mut Self
An id the client received in requestPaused event.
Sourcepub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
If set, the request url will be modified in a way that’s not observable by page.
Sourcepub fn method<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn method<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
If set, the request method is overridden.
Sourcepub fn post_data<VALUE: Into<Vec<u8>>>(&mut self, value: VALUE) -> &mut Self
pub fn post_data<VALUE: Into<Vec<u8>>>(&mut self, value: VALUE) -> &mut Self
If set, overrides the post data in the request.
Sourcepub fn headers<VALUE: Into<Vec<HeaderEntry>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn headers<VALUE: Into<Vec<HeaderEntry>>>( &mut self, value: VALUE, ) -> &mut 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<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn intercept_response<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
If set, overrides response interception behavior for this request.
Sourcepub fn build(&self) -> Result<ContinueRequest, ContinueRequestBuilderError>
pub fn build(&self) -> Result<ContinueRequest, ContinueRequestBuilderError>
Trait Implementations§
Source§impl Clone for ContinueRequestBuilder
impl Clone for ContinueRequestBuilder
Source§fn clone(&self) -> ContinueRequestBuilder
fn clone(&self) -> ContinueRequestBuilder
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 moreAuto Trait Implementations§
impl Freeze for ContinueRequestBuilder
impl RefUnwindSafe for ContinueRequestBuilder
impl Send for ContinueRequestBuilder
impl Sync for ContinueRequestBuilder
impl Unpin for ContinueRequestBuilder
impl UnsafeUnpin for ContinueRequestBuilder
impl UnwindSafe for ContinueRequestBuilder
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