Replace url::Url
with our own type
#2053
Labels
Azure.Core
The azure_core crate
Client
This issue points to a problem in the data-plane of the library.
Milestone
Before we GA, I would like to replace the
url::Url
type that we re-export fromtypespec_client_core
andazure_core
with our own type that is better optimized for scenarios we need e.g.,&str
for which we are reasonably sure it's a URL e.g., returned resource IDs. This could be exposed viaFrom<&str>
or anew_unchecked
constructor.&str
parts could be retrieved asCow<'_, str>
and, thus, we'd implementToOwned
and friends.The scenarios all this enables are:
&str
slices for parts within a URL.The text was updated successfully, but these errors were encountered: