pub trait HttpHandler:
Sync
+ Send
+ 'static {
// Required methods
fn namespace(&self) -> &[&'static str];
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request<Incoming>,
remote_addr: SocketAddr,
prefix: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Response<BoxBody>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}