let uri = lib::parse("https://yesman@www.youtube.com:80/?v=12345678#tag").unwrap();
println!("{:?}", uri.scheme()); // "https"
println!("{:?}", uri.host()); // RegName("www.youtube.com")
println!("{:?}", uri.user_info()); // Some("yesman")
println!("{:?}", uri.domain()); // Some("www.youtube.com")
println!("{:?}", uri.port()); // Some(80)
println!("{:?}", uri.query()); // Some("v=12345678")
println!("{:?}", uri.fragment()); // Some("tag")
-
Notifications
You must be signed in to change notification settings - Fork 0
1yesman9/Uri
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Rust Uri parser and builder WIP w/ nom.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published