macro_rules! http_router {
    ($($method:tt $path:literal => $h:expr),*) => { ... };
    (@build $r:ident HEAD $path:literal => $h:expr) => { ... };
    (@build $r:ident GET $path:literal => $h:expr) => { ... };
    (@build $r:ident PUT $path:literal => $h:expr) => { ... };
    (@build $r:ident POST $path:literal => $h:expr) => { ... };
    (@build $r:ident PATCH $path:literal => $h:expr) => { ... };
    (@build $r:ident DELETE $path:literal => $h:expr) => { ... };
    (@build $r:ident OPTIONS $path:literal => $h:expr) => { ... };
    (@build $r:ident _ $path:literal => $h:expr) => { ... };
}
Expand description

A macro to help with constructing a Router from a stream of tokens.