This crate takes a URL, formats it correctly, and returns the version of the URL that returns a 200 series response.
Documentation:
Add this to your Cargo.toml
:
[dependencies]
clean_url = "0.1"
async fn main() {
let url = return_url(String::from("example.com")).await;
assert_eq(Some("http://example.com"), url);
}
clean_url is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.