Closed
Description
Now that hyper::Uri
has sufficient parsing capability, and can represent any URI for the server or client, does it make sense to still also use the Url
type? When looking at the rustdocs generated, it certainly looks confusing that there is both Url
and Uri
at the crate root. And issues like #1087 and others sometimes appear because people assume hyper controls the Url
type.
Some options I'm considering:
- Remove any direct usage of
Url
, but implementFrom<Url> for Uri
, so people can easily doRequest::new(Get, url.into())
. - Remove the
url
crate dependency entirely. This would probably be the ideal option, so that the crate is only included in projects that explicitly ask for it. However, it does make it slightly more annoying to create client requests.
/cc @frewsxcv @nox (@alexcrichton for sccache experience)