1
0
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:
Nikolay Kim
2018-01-09 20:00:18 -08:00
parent 6c7dda495b
commit e8412672a2
7 changed files with 401 additions and 39 deletions

View File

@ -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.