#[macro_export]
macro_rules! mid {
(
$req:ident,
$res:ident,
$next:ident,
$($body:tt)*
) => {
move |$req: $crate::Req, $res: $crate::Res, $next: $crate::Next| {
::std::boxed::Box::pin(async move {
$($body)*
})
}
};
}
#[macro_export]
macro_rules! han {
(
$req:ident,
$res:ident,
$($body:tt)*
) => {
|$req, $res| {
::std::boxed::Box::pin(async move {
$($body)*
})
}
};
}