http_acl/utils/
url.rs

1//! URL utilities.
2
3use url::Url;
4
5/// Get the path from a URL.
6pub fn get_url_path(url: &str) -> Option<String> {
7    let url = Url::parse(url).ok()?;
8    Some(url.path().to_string())
9}