mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 15:17:18 +01:00
568394a28e
* support setting body type for #[debug_handler] * Use lookahead1 to give better errors and detect duplicate arguments * fix docs link
9 lines
184 B
Rust
9 lines
184 B
Rust
use axum_macros::debug_handler;
|
|
|
|
#[debug_handler(body = BoxBody, body = BoxBody)]
|
|
async fn handler() {}
|
|
|
|
#[debug_handler(state = (), state = ())]
|
|
async fn handler_2() {}
|
|
|
|
fn main() {}
|