[][src]Function clean_url::utils::remove_www

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")));