Macro fire_http::get_with_file
source · [−]macro_rules! get_with_file {
($name:ident, $($tt:tt)*) => { ... };
($name:ident<$data_ty:ty>, $uri:expr => $path:expr) => { ... };
}Expand description
Static get handler which servers/returns a file.
Example
use fire::get_with_file;
type Data = ();
get_with_file! { Index, "/" => "./www/index.html" }