Struct awc::FrozenSendBuilder
source · [−]pub struct FrozenSendBuilder { /* private fields */ }
Expand description
Builder that allows to modify extra headers.
Implementations
Insert a header, it overrides existing header in FrozenClientRequest
.
pub 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>;
Notable traits for SendClientRequest
impl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
Complete request construction and send a body.
pub 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>;
Notable traits for SendClientRequest
impl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
Complete request construction and send a json body.
pub 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>;
Notable traits for SendClientRequest
impl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
Complete request construction and send an urlencoded body.
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,
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,
Notable traits for SendClientRequest
impl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
Complete request construction and send a streaming body.
pub 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>;
Notable traits for SendClientRequest
impl 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
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more