Trait ResponseMiddleware
Source pub trait ResponseMiddleware:
Send
+ Sync
+ 'static {
// Required method
fn on_response<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
session: &'life1 mut Session,
req_ctx: &'life2 mut RequestContext,
response: &'life3 mut ResponseHeader,
cardinal: Arc<CardinalContext>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}