Skip to content

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

jaredforth/clean_url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages