HttpService

Trait HttpService 

Source
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§

Source

type ResponseBody: Body

Body of the responses given by the service.

Implementors§

Source§

impl<S, ReqB, ResB> HttpService<ReqB> for S
where S: Service<Request<ReqB>, Response = Response<ResB>> + ?Sized, ResB: Body,