Add #[debug_middleware] (#2725)

Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
Yann Simon
2024-05-02 17:27:12 -04:00
committed by GitHub
co-authored by David Pedersen
parent c57c2847b2
commit df612fdc72
12 changed files with 374 additions and 124 deletions
@@ -0,0 +1,13 @@
use axum::{
extract::Request,
response::Response,
middleware::Next,
debug_middleware,
};
#[debug_middleware]
async fn my_middleware(request: Request, next: Next) -> Response {
next.run(request).await
}
fn main() {}