pub struct RequestBuilder { /* private fields */ }
Implementations§
Source§impl RequestBuilder
impl RequestBuilder
pub fn url(self, url: impl Into<String>) -> RequestBuilder
pub fn url_fragment(self, url_fragment: impl Into<String>) -> RequestBuilder
pub fn method(self, method: impl Into<String>) -> RequestBuilder
pub fn headers(self, headers: impl Into<Headers>) -> RequestBuilder
pub fn has_post_data(self, has_post_data: impl Into<bool>) -> RequestBuilder
pub fn post_data_entrie( self, post_data_entrie: impl Into<PostDataEntry>, ) -> RequestBuilder
pub fn post_data_entries<I, S>(self, post_data_entries: I) -> RequestBuilder
pub fn mixed_content_type( self, mixed_content_type: impl Into<MixedContentType>, ) -> RequestBuilder
pub fn initial_priority( self, initial_priority: impl Into<ResourcePriority>, ) -> RequestBuilder
pub fn referrer_policy( self, referrer_policy: impl Into<RequestReferrerPolicy>, ) -> RequestBuilder
pub fn is_link_preload(self, is_link_preload: impl Into<bool>) -> RequestBuilder
pub fn trust_token_params( self, trust_token_params: impl Into<TrustTokenParams>, ) -> RequestBuilder
pub fn is_same_site(self, is_same_site: impl Into<bool>) -> RequestBuilder
pub fn build(self) -> Result<Request, String>
Trait Implementations§
Source§impl Clone for RequestBuilder
impl Clone for RequestBuilder
Source§fn clone(&self) -> RequestBuilder
fn clone(&self) -> RequestBuilder
Returns a copy 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 Default for RequestBuilder
impl Default for RequestBuilder
Source§fn default() -> RequestBuilder
fn default() -> RequestBuilder
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more