Skip to main content

rewrite

Function rewrite 

Source
pub fn rewrite(cwd: &Path, url: &str) -> Result<String, Error>
Expand description

Apply url.*.insteadOf rewriting to url, returning the longest- prefix-match rewrite or the original string if nothing matches.