mirror of
https://github.com/actix/actix-website
synced 2024-11-24 00:41:07 +01:00
Add a note about middleware execution order (#240)
This commit is contained in:
parent
bcf63b6e83
commit
e467e67280
@ -36,6 +36,8 @@ Alternatively, for simple use cases, you can use [*wrap_fn*][wrap_fn] to create
|
||||
> Actix-web provides several useful middleware, such as *logging*, *user sessions*,
|
||||
> *compress*, etc.
|
||||
|
||||
**Warning: if you use `wrap()` or `wrap_fn()` multiple times, the last occurrence will be executed first.**
|
||||
|
||||
# Logging
|
||||
|
||||
Logging is implemented as a middleware. It is common to register a logging middleware
|
||||
|
Loading…
Reference in New Issue
Block a user