mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
add resource level middlewares support
This commit is contained in:
@ -46,7 +46,7 @@ pub enum Finished {
|
||||
|
||||
/// Middleware definition
|
||||
#[allow(unused_variables)]
|
||||
pub trait Middleware<S> {
|
||||
pub trait Middleware<S>: 'static {
|
||||
|
||||
/// Method is called when request is ready. It may return
|
||||
/// future, which should resolve before next middleware get called.
|
||||
|
Reference in New Issue
Block a user