Function clean_url::utils::remove_www [−][src]
pub async fn remove_www(url: &str) -> String
Removes www from a URL
Usage:
use clean_url::utils::remove_www; use tokio_test::block_on; assert_eq!(String::from("http://example.com"), block_on(remove_www("http://www.example.com")));