mirror of
https://github.com/actix/examples
synced 2024-12-02 18:02:22 +01:00
632 B
632 B
Middleware: Add/Retrieve Request-Local Data
This example showcases a middleware that adds and retrieves request-local data. See also the middleware guide.
Usage
cd middleware/middleware-ext-mut
cargo run
Look in src/add_msg.rs
to see how it works.