mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41:07 +01:00
.. | ||
src | ||
Cargo.toml | ||
README.md |
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 basics/middleware-ext-mut
cargo run
# Started http server: 127.0.0.1:8080
Look in src/add_msg.rs
to see how it works.