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