Macro fire_http::dyn_delete
source · [−]macro_rules! dyn_delete {
($name:ident, $($tt:tt)*) => { ... };
(
$name:ident<$data_ty:ty>,
$path:expr,
|$($data:ident),*| -> $ret_type:ty $block:block
) => { ... };
}Expand description
Dynamic delete request handler.
Example
use fire::dyn_delete;
type Data = ();
dyn_delete! {
RouteName, "/files/",
|_req| -> &'static str {
"Hello, World!"
}
}