clean_url

Crates.ioclean_url
lib.rsclean_url
version0.1.9
sourcesrc
created_at2020-09-30 20:22:44.144286
updated_at2021-04-21 13:42:33.035479
descriptionThis crate takes a URL, formats it correctly, and returns the version of the URL that returns a 200 series response.
homepagehttps://crates.io/crates/clean_url
repositoryhttps://github.com/jaredforth/clean_url
max_upload_size
id294744
size28,769
Jared Forth (jaredforth)

documentation

https://docs.rs/clean_url

README

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.

Commit count: 54

cargo fmt