Closed Thomas-airmatrix closed 1 month ago
Outside of tests there is only a single use of url::Url in tungstenite:
url::Url
impl<'a> IntoClientRequest for &'a Url { fn into_client_request(self) -> Result<Request> { self.as_str().into_client_request() } } impl IntoClientRequest for Url { fn into_client_request(self) -> Result<Request> { self.as_str().into_client_request() } }
Which is just implementing some helper conversion traits.
Instead, we can just have users call as_str() on the Url directly if needed.
as_str()
With http =1, http::uri::Uri has replaced most uses of the url crate. I have multiple project such that the only use of url is tungstenite.
http
http::uri::Uri
url
This can be closed ?! (#419)
Outside of tests there is only a single use of
url::Url
in tungstenite:Which is just implementing some helper conversion traits.
Instead, we can just have users call
as_str()
on the Url directly if needed.With
http
=1,http::uri::Uri
has replaced most uses of theurl
crate. I have multiple project such that the only use ofurl
is tungstenite.