mirror of
https://github.com/tokio-rs/axum.git
synced 2025-10-02 15:24:54 +00:00
rmv claim that state can't be passed to middleware (#1426)
axum::middleware::from_fn_with_state now allows middleware to access application state.
This commit is contained in:
parent
fef95bf37a
commit
2c833ad276
@ -8,8 +8,8 @@ use std::{
|
|||||||
|
|
||||||
/// Extractor for state.
|
/// Extractor for state.
|
||||||
///
|
///
|
||||||
/// Note this extractor is not available to middleware. See ["Accessing state in
|
/// See ["Accessing state in middleware"][state-from-middleware] for how to
|
||||||
/// middleware"][state-from-middleware] for how to access state in middleware.
|
/// access state in middleware.
|
||||||
///
|
///
|
||||||
/// [state-from-middleware]: crate::middleware#accessing-state-in-middleware
|
/// [state-from-middleware]: crate::middleware#accessing-state-in-middleware
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user