This is a URL parsing library written in Rust.
The goal of this project is to provide simple parsing URL library like urllib.parse in Python3.x.
``` rust extern crate urlparse; use urlparse::urlparse;
fn main() { let url = urlparse("http://www.example.com/foo?bar=123"); println!("{:?}", url); } ```
Url { scheme: "http", netloc: "www.example.com", path: "/foo", query: Some("bar=123"), fragment: None, username: None, password: None, hostname: Some("www.example.com"), port: None }
MIT
If you're using Cargo, just add urlparse to your Cargo.toml:
[dependencies.urlparse]
version = "*"
The documentation is hosted online.