pub trait Middleware:
Send
+ Sync
+ 'static {
// Provided methods
fn before(&self, _: &mut dyn RequestExt) -> BeforeResult { ... }
fn after(&self, _: &mut dyn RequestExt, res: AfterResult) -> AfterResult { ... }
}pub trait Middleware:
Send
+ Sync
+ 'static {
// Provided methods
fn before(&self, _: &mut dyn RequestExt) -> BeforeResult { ... }
fn after(&self, _: &mut dyn RequestExt, res: AfterResult) -> AfterResult { ... }
}