dynamic-config-actix
A request-scoped dynamic-config snapshot
for Actix Web: one middleware, one extractor.
[]
= "0.1.0"
use ;
use sections;
async
new
.wrap
.service;
Both sections come from one reading taken when the request began, so a reload landing mid-request cannot show one response two generations.
The middleware owns no lifecycle: loading, watching and the WatchHandle stay in
your main, unchanged.
See the workspace README for the problem this solves, and
cargo run -p dynamic-config-actix --example actix_two_sections for a
runnable demonstration.
MIT licensed.