Struct awc::FrozenClientRequest
source · [−]pub struct FrozenClientRequest { /* private fields */ }
Expand description
FrozenClientRequest
struct represents cloneable client request.
It could be used to send same request multiple times.
Implementations
Get HTTP method of this request
pub fn send_body<B>(&self, body: B) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
where
B: MessageBody + 'static,
pub fn send_body<B>(&self, body: B) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
where
B: MessageBody + 'static,
Notable traits for SendClientRequest
impl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
Send a body.
pub fn send_json<T: Serialize>(&self, value: &T) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
pub fn send_json<T: Serialize>(&self, value: &T) -> 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>;
Send a json body.
pub fn send_form<T: Serialize>(&self, value: &T) -> SendClientRequestⓘNotable traits for SendClientRequestimpl Future for SendClientRequest type Output = Result<ClientResponse<Decoder<Payload>>, SendRequestError>;
pub fn send_form<T: Serialize>(&self, value: &T) -> 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>;
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>;
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>;
Send an empty body.
Clones this FrozenClientRequest
, returning a new one with extra headers added.
Clones this FrozenClientRequest
, returning a new one with the extra header added.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FrozenClientRequest
impl !Send for FrozenClientRequest
impl !Sync for FrozenClientRequest
impl Unpin for FrozenClientRequest
impl !UnwindSafe for FrozenClientRequest
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