pub fn rewrite(cwd: &Path, url: &str) -> Result<String, Error>
Apply url.*.insteadOf rewriting to url, returning the longest- prefix-match rewrite or the original string if nothing matches.
url.*.insteadOf
url