Files
axum/axum-macros/tests/debug_handler/pass/state_and_body.rs
T

11 lines
230 B
Rust
Raw Normal View History

use axum_macros::debug_handler;
2023-03-12 16:37:32 +01:00
use axum::{extract::State, http::Request};
2023-03-12 16:37:32 +01:00
#[debug_handler(state = AppState)]
async fn handler(_: State<AppState>, _: Request<axum::body::Body>) {}
#[derive(Clone)]
struct AppState;
fn main() {}