Skip to main content

resolve_route

Function resolve_route 

Source
pub fn resolve_route(out: &Path, url_path: &str) -> Option<PathBuf>
Expand description

Map a request path to a file under out: empty → index.html; directories resolve to their index.html; an extensionless path falls back to <path>.html. Percent escapes are decoded; anything that escapes out (or games the encoding) resolves to nothing.