pub fn get_url_without_query_string(url: &str) -> Result<String, Error>Expand description
Extracts the URL without query string from a URL string.
For example, given “https://www.example.com/test?query=test”, this function returns “https://www.example.com/test”.
§Arguments
url- A string slice containing the URL to parse
§Returns
Result<String, anyhow::Error>- The URL string without query string on success, or an error if URL parsing fails