#clean #url #status-code #formating

clean_url

This crate takes a URL, formats it correctly, and returns the version of the URL that returns a 200 series response

10 releases

0.1.9 Apr 21, 2021
0.1.8 Apr 19, 2021
0.1.6 Mar 31, 2021
0.1.5 Feb 12, 2021
0.1.0 Sep 30, 2020

#15 in #status-code

MIT/Apache

15KB
141 lines

Build Status Build status Crate API Crates.io Crates.io GitHub top language Crates.io

clean_url

About

This crate takes a URL, formats it correctly, and returns the version of the URL that returns a 200 series response.

Table of Contents

Documentation:

Installation and Usage

Installation

Add this to your Cargo.toml:

[dependencies]
clean_url = "0.1"

Usage

async fn main() {
    let url = return_url(String::from("example.com")).await;
    assert_eq(Some("http://example.com"), url);
}

License

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.

Dependencies

~9–14MB
~247K SLoC