Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to using Cow<'static, str> for most headers/request options #953

Merged
merged 6 commits into from
Jul 22, 2022

Conversation

bmc-msft
Copy link
Contributor

No description provided.

@bmc-msft
Copy link
Contributor Author

Based on comments from #951

sdk/core/src/macros.rs Outdated Show resolved Hide resolved
sdk/core/src/macros.rs Outdated Show resolved Hide resolved
pub const $variant: $name = $name::from_static($value);
)*

pub fn new<S>(s: S) -> Self
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like most of this stuff is shared. Can we share the definition? We can probably do all of this in one macro since the invocation is unambiguous between the two use cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There needs to be some disambiguation because of either Header or AppendToUrlQuery implementation.

@rylev rylev merged commit e36c729 into Azure:main Jul 22, 2022
@rylev rylev mentioned this pull request Jul 22, 2022
@bmc-msft bmc-msft deleted the move-to-cow-str-for-many-request-options branch July 22, 2022 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants