Trait hyper::service::HttpService
source · pub trait HttpService<ReqBody>: Sealed<ReqBody> {
type ResBody: Body;
type Error: Into<Box<dyn StdError + Send + Sync>>;
type Future: Future<Output = Result<Response<Self::ResBody>, Self::Error>>;
}
Expand description
An asynchronous function from Request
to Response
.