pub trait HttpService {
// Required method
fn call(
&mut self,
req: Request<'_, '_, '_>,
rsp: &mut Response<'_>,
) -> Result<()>;
}
Expand description
the http service trait
user code should supply a type that impl the call
method for the http server