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

14 lines
237 B
Rust
Raw Normal View History

use axum::{
extract::Request,
response::Response,
middleware::Next,
debug_middleware,
};
#[debug_middleware]
async fn my_middleware(next: Next, request: Request) -> Response {
next.run(request).await
}
fn main() {}