1
0
mirror of https://github.com/actix/actix-website synced 2025-06-29 00:10:36 +02: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

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