Struct conjure_runtime::blocking::Client [−][src]
pub struct Client<T = DefaultRawClient> { /* fields omitted */ }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
Returns a new request builder.
The pattern argument is a template for the request path. The param method on the builder is used to fill
in the parameters in the pattern with dynamic values.
Returns a new builder for a GET request.
Returns a new builder for a POST request.
Returns a new builder for a PUT request.
Returns a new builder for a DELETE request.
Returns a new builder for a PATCH request.
Trait Implementations
type BinaryWriter = BodyWriter
type BinaryWriter = BodyWriter
The client’s binary request body writer type.
type BinaryBody = ResponseBody<B>
type BinaryBody = ResponseBody<B>
The client’s binary response body type.
fn request<'a, R, U>(
&self,
method: Method,
path: &'static str,
path_params: PathParams,
query_params: QueryParams,
headers: HeaderMap<HeaderValue>,
body: R,
response_visitor: U
) -> Result<<U as VisitResponse<Self::BinaryBody>>::Output, Error> where
R: RequestBody<'a, Self::BinaryWriter>,
U: VisitResponse<Self::BinaryBody>,
fn request<'a, R, U>(
&self,
method: Method,
path: &'static str,
path_params: PathParams,
query_params: QueryParams,
headers: HeaderMap<HeaderValue>,
body: R,
response_visitor: U
) -> Result<<U as VisitResponse<Self::BinaryBody>>::Output, Error> where
R: RequestBody<'a, Self::BinaryWriter>,
U: VisitResponse<Self::BinaryBody>,
Makes an HTTP request. Read more
Auto Trait Implementations
impl<T = DefaultRawClient> !RefUnwindSafe for Client<T>
impl<T = DefaultRawClient> !UnwindSafe for Client<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. 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