pub struct RequestBuilder { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Implementations§
Source§impl RequestBuilder
impl RequestBuilder
Sourcepub fn url_fragment(&mut self, v: String) -> &mut Self
pub fn url_fragment(&mut self, v: String) -> &mut Self
Fragment of the requested URL starting with hash, if present.
Sourcepub fn has_post_data(&mut self, v: bool) -> &mut Self
pub fn has_post_data(&mut self, v: bool) -> &mut Self
True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
Sourcepub fn post_data_entries(&mut self, v: Vec<PostDataEntry>) -> &mut Self
Available on crate feature experimental only.
pub fn post_data_entries(&mut self, v: Vec<PostDataEntry>) -> &mut Self
experimental only.Request body elements. This will be converted from base64 to binary
Sourcepub fn mixed_content_type(&mut self, v: MixedContentType) -> &mut Self
pub fn mixed_content_type(&mut self, v: MixedContentType) -> &mut Self
The mixed content type of the request.
Sourcepub fn initial_priority(&mut self, v: ResourcePriority) -> &mut Self
pub fn initial_priority(&mut self, v: ResourcePriority) -> &mut Self
Priority of the resource request at the time request is sent.
Sourcepub fn referrer_policy(&mut self, v: RequestReferrerPolicy) -> &mut Self
pub fn referrer_policy(&mut self, v: RequestReferrerPolicy) -> &mut Self
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
Sourcepub fn is_link_preload(&mut self, v: bool) -> &mut Self
pub fn is_link_preload(&mut self, v: bool) -> &mut Self
Whether is loaded via link preload.
Sourcepub fn trust_token_params(&mut self, v: JsonValue) -> &mut Self
Available on crate feature experimental only.
pub fn trust_token_params(&mut self, v: JsonValue) -> &mut Self
experimental only.Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via “fetch”) as understood by the backend.
pub fn build(&mut self) -> Result<Request, &'static str>
Trait Implementations§
Source§impl Clone for RequestBuilder
impl Clone for RequestBuilder
Source§fn clone(&self) -> RequestBuilder
fn clone(&self) -> RequestBuilder
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 RequestBuilder
impl Debug for RequestBuilder
Auto Trait Implementations§
impl Freeze for RequestBuilder
impl RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl UnwindSafe for RequestBuilder
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