use crate::HttpService;
pub trait IntoHttpService<B: Send, X> {
type Service: HttpService<B, ResponseBody = Self::ResponseBody>;
type ResponseBody;
fn into_svc(self) -> Self::Service;
}
#[doc(hidden)]
pub enum ImplIntoHttpServiceForServiceTag {}
impl<B, S> IntoHttpService<B, ImplIntoHttpServiceForServiceTag> for S
where
B: Send,
S: HttpService<B>,
{
type Service = S;
type ResponseBody = <S as HttpService<B>>::ResponseBody;
fn into_svc(self) -> Self::Service {
self
}
}