use crate::{rule_set::prefix::Prefix, util::http::normalize_url_path};
pub fn url_path_with_prefix(url_path: &str, rule_set_prefix: Option<&Prefix>) -> String {
let url_path_prefix = if let Some(prefix) = rule_set_prefix {
prefix.url_path_prefix.as_deref()
} else {
None
};
normalize_url_path(url_path, url_path_prefix)
}