Struct awc::FrozenSendBuilder
source · pub struct FrozenSendBuilder { /* private fields */ }
Expand description
Builder that allows to modify extra headers.
Implementations§
source§impl FrozenSendBuilder
impl FrozenSendBuilder
sourcepub fn extra_header(self, header: impl TryIntoHeaderPair) -> Self
pub fn extra_header(self, header: impl TryIntoHeaderPair) -> Self
Insert a header, it overrides existing header in FrozenClientRequest
.
sourcepub fn send_body(self, body: impl MessageBody + 'static) -> SendClientRequest ⓘ
pub fn send_body(self, body: impl MessageBody + 'static) -> SendClientRequest ⓘ
Complete request construction and send a body.
sourcepub fn send_json(self, value: impl Serialize) -> SendClientRequest ⓘ
pub fn send_json(self, value: impl Serialize) -> SendClientRequest ⓘ
Complete request construction and send a json body.
sourcepub fn send_form(self, value: impl Serialize) -> SendClientRequest ⓘ
pub fn send_form(self, value: impl Serialize) -> SendClientRequest ⓘ
Complete request construction and send an urlencoded body.
sourcepub fn send_stream<S, E>(self, stream: S) -> SendClientRequest ⓘ
pub fn send_stream<S, E>(self, stream: S) -> SendClientRequest ⓘ
Complete request construction and send a streaming body.
sourcepub fn send(self) -> SendClientRequest ⓘ
pub fn send(self) -> SendClientRequest ⓘ
Complete request construction and send an empty body.
Auto Trait Implementations§
impl Freeze for FrozenSendBuilder
impl !RefUnwindSafe for FrozenSendBuilder
impl !Send for FrozenSendBuilder
impl !Sync for FrozenSendBuilder
impl Unpin for FrozenSendBuilder
impl !UnwindSafe for FrozenSendBuilder
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