3 ms·
Anyone know why the super simple Middleware trait[1] was replaced by the more complex (and confusing at first) Transform and Service traits? Here's the simple
by brunoqc 7y ago
Anyone know why the super simple Middleware trait[1] was replaced by the more complex (and confusing at first) Transform and Service traits?
Here's the simple middleware examples:
0.7: https://github.com/actix/examples/blob/0.7/middleware/src/simple.rs https://github.com/actix/examples/blob/0.7/middleware/src/si...
1.0: https://github.com/actix/examples/blob/master/middleware/src/simple.rs https://github.com/actix/examples/blob/master/middleware/src...
Could a simple Middleware trait be added that would implement both new traits for us?
[1]: actix_web::middleware::Middleware
- deleted 7y ago[deleted]