pub trait MiddleWareHandler: Send + Sync + 'static {
// Provided methods
fn match_req<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 Request
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn pre_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_req: &'life1 mut Request,
_res: &'life2 mut Response
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn after_response<'life0, 'life1, 'async_trait>(
&'life0 self,
_res: &'life1 mut Response
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}