Skip to main content

get_url_path

Function get_url_path 

Source
pub fn get_url_path(url: &str) -> Option<String>
Expand description

Extracts the percent-decoded path from a full URL string, ready to pass to HttpAcl::is_url_path_allowed.

Returns None if url isn’t a valid URL, or if its path isn’t valid UTF-8 once decoded.