macro_rules! dyn_head {
    ($name:ident, $($tt:tt)*) => { ... };
    (
		$name:ident<$data_ty:ty>,
		$path:expr,
		|$($data:ident),*| -> $ret_type:ty $block:block
	) => { ... };
}
Expand description

Dynamic head request handler.

Example

use fire::dyn_head;
 
type Data = ();
 
dyn_head! {
	RouteName, "/files/",
	|_req| -> &'static str {
		"Hello, World!"
	}
}