2 releases
0.1.1 | Jan 30, 2023 |
---|---|
0.1.0 | Jan 30, 2023 |
#1492 in Embedded development
749 downloads per month
Used in 2 crates
(via reqwless)
10KB
220 lines
A simple Url primitive
This crate provides a simple Url
type that can be used in embedded no_std
environments.
If you are missing a feature or would like to add a new scheme, please raise an issue or a PR.
The crate runs on stable rust.
Example
let url = Url::parse("http://localhost/foo/bar").unwrap();
assert_eq!(url.scheme(), UrlScheme::HTTP);
assert_eq!(url.host(), "localhost");
assert_eq!(url.port_or_default(), 80);
assert_eq!(url.path(), "/foo/bar");
The implementation is heavily inspired (close to copy/pase) from the Url type in reqwless.
Dependencies
~155KB