fn update_url(transform: Box<dyn Fn(String) -> String>) -> Result<()>