pub struct Client { /* private fields */ }
Expand description
A blocking HTTP client to a remote service.
It implements the Conjure Client
trait, but also offers a “raw” request interface for use with services that don’t
provide Conjure service definitions.
Implementations§
Trait Implementations§
Source§impl Client for Client
impl Client for Client
Source§type BodyWriter = BodyWriter
type BodyWriter = BodyWriter
The client’s binary request write type.
Source§type ResponseBody = ResponseBody
type ResponseBody = ResponseBody
The client’s binary response body type.
Source§fn send(
&self,
req: Request<RequestBody<'_, Self::BodyWriter>>,
) -> Result<Response<Self::ResponseBody>, Error>
fn send( &self, req: Request<RequestBody<'_, Self::BodyWriter>>, ) -> Result<Response<Self::ResponseBody>, Error>
Makes an HTTP request. Read more
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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