rewrite_url

Function rewrite_url 

Source
pub fn rewrite_url<'a>(config: &Config, url: &'a Url) -> Result<Cow<'a, Url>>
Expand description

Re-writes a cloud storage schemed URL (e.g. az://, s3://, gs://) to a corresponding https:// URL.

If the URL is not a cloud storage schemed URL, the given URL is returned.

Returns an error if the given URL is not a valid cloud storage URL.