Skip to main content

apply_rewrites

Function apply_rewrites 

Source
pub fn apply_rewrites<S: BuildHasher>(
    uri: &str,
    rewrites: &HashMap<String, String, S>,
) -> String
Expand description

Apply rewrite rules to a schema URI. If the URI starts with any key in rewrites, that prefix is replaced with the corresponding value. The longest matching prefix wins.