Trait hyper::service::http::HttpService
source · pub trait HttpService<ReqBody>: Sealed<ReqBody> {
type ResBody: HttpBody;
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
.