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

Feature-gate http versions in aws-smithy-runtime-api #3236

Merged
merged 6 commits into from
Nov 17, 2023

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Nov 17, 2023

Motivation and Context

Without this, we will have http = 0.2 permanently in-tree.

Description

  • Add feature gate for http 02x.
  • Add http 1x as an experiment.

Testing

CI

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rcoh rcoh requested review from a team as code owners November 17, 2023 21:42
@rcoh rcoh force-pushed the feature-gate-http02x branch from 60b1476 to 0bb183f Compare November 17, 2023 22:03
Comment on lines 289 to 293

#[allow(dead_code)]
pub(crate) fn into_http1x(self) -> http1::HeaderValue {
http1::HeaderValue::from_bytes(self._private.as_bytes()).expect("proven valid")
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#[allow(dead_code)]
pub(crate) fn into_http1x(self) -> http1::HeaderValue {
http1::HeaderValue::from_bytes(self._private.as_bytes()).expect("proven valid")
}

Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@jdisanti jdisanti merged commit 404f402 into main Nov 17, 2023
40 of 41 checks passed
@jdisanti jdisanti deleted the feature-gate-http02x branch November 17, 2023 23:00
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.

3 participants