Struct awc::FrozenSendBuilder
source · [−]pub struct FrozenSendBuilder { /* private fields */ }Expand description
Builder that allows to modify extra headers.
Implementations
sourceimpl 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ⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
pub fn send_body(self, body: impl MessageBody + 'static) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
Complete request construction and send a body.
sourcepub fn send_json(self, value: impl Serialize) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
pub fn send_json(self, value: impl Serialize) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
Complete request construction and send a json body.
sourcepub fn send_form(self, value: impl Serialize) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
pub fn send_form(self, value: impl Serialize) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
Complete request construction and send an urlencoded body.
sourcepub fn send_stream<S, E>(self, stream: S) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;where
S: Stream<Item = Result<Bytes, E>> + 'static,
E: Into<Box<dyn Error>> + 'static,
pub fn send_stream<S, E>(self, stream: S) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;where
S: Stream<Item = Result<Bytes, E>> + 'static,
E: Into<Box<dyn Error>> + 'static,
Complete request construction and send a streaming body.
sourcepub fn send(self) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
pub fn send(self) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
Complete request construction and send an empty body.
Auto Trait Implementations
impl !RefUnwindSafe for FrozenSendBuilder
impl !Send for FrozenSendBuilder
impl !Sync for FrozenSendBuilder
impl Unpin for FrozenSendBuilder
impl !UnwindSafe for FrozenSendBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more