Azure / azure-sdk-for-rust

This repository is for the active development of the Azure SDK for Rust. For consumers of the SDK we recommend visiting Docs.rs and looking up the docs for any of libraries in the SDK.
MIT License
714 stars 248 forks source link

Provider helpers to easily overwrite `Url` query parameters #1907

Open heaths opened 1 week ago

heaths commented 1 week ago

According to the REST API guidelines, clients should set or overwrite the api-version header for any request to the service including pageables and LROs; however, url::Url doesn't define an easy way of overwriting headers. We have helpers for appending and should add some for setting/overwriting because the code to do so - which we need to do for every request to the service - is a bit verbose.

See this comment for context.