axum/axum-macros/tests/debug_middleware/fail/next_not_last.rs

9 lines
218 B
Rust
Raw Normal View History

2024-11-26 19:04:01 +01:00
use axum::{debug_middleware, extract::Request, middleware::Next, response::Response};
#[debug_middleware]
async fn my_middleware(next: Next, request: Request) -> Response {
next.run(request).await
}
fn main() {}