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

Static head handler.

Example

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