Struct conjure_runtime::blocking::Client
source · pub struct Client<T = DefaultRawClient> { /* 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<T, B> Client for Client<T>where
T: Service<Request<RawBody>, Response = Response<B>> + 'static + Sync + Send,
T::Error: Into<Box<dyn Error + Sync + Send>>,
T::Future: Send,
B: Body<Data = Bytes> + 'static + Send,
B::Error: Into<Box<dyn Error + Sync + Send>>,
impl<T, B> Client for Client<T>where
T: Service<Request<RawBody>, Response = Response<B>> + 'static + Sync + Send,
T::Error: Into<Box<dyn Error + Sync + Send>>,
T::Future: Send,
B: Body<Data = Bytes> + 'static + Send,
B::Error: Into<Box<dyn Error + Sync + Send>>,
§type BodyWriter = BodyWriter
type BodyWriter = BodyWriter
The client’s binary request write type.
§type ResponseBody = ResponseBody<B>
type ResponseBody = ResponseBody<B>
The client’s binary response body type.