pub trait HttpService<B>: Service<Request<B>> + Sealed<B> {
type ResponseBody: Body;
}Expand description
An HTTP client (like hyper::Client).
This is just an alias for tower_service::Service
introduced to reduce the number of type parameters in Builder::listen_with_client.
Required Associated Types§
Sourcetype ResponseBody: Body
type ResponseBody: Body
Body of the responses given by the service.