1
0
mirror of https://github.com/actix/actix-website synced 2024-11-23 16:31:08 +01:00

Add a note about middleware execution order (#240)

This commit is contained in:
David Sferruzza 2021-11-04 21:22:45 +01:00 committed by GitHub
parent bcf63b6e83
commit e467e67280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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