Lines Matching full:middleware
18 /// Create a middleware from an async function.
37 /// middleware::{self, Next},
55 /// .layer(middleware::from_fn(my_middleware));
68 /// middleware::{self, Next},
97 /// .route_layer(middleware::from_fn(auth));
107 /// Create a middleware from an async function with the given state.
119 /// middleware::{self, Next},
147 /// .route_layer(middleware::from_fn_with_state(state.clone(), my_middleware))
161 /// [`tower::Layer`] is used to apply middleware to [`Router`](crate::Router)'s.
215 /// A middleware created from an async function.
327 /// The remainder of a middleware stack, including the handler.
333 /// Execute the remaining middleware stack.