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

Add conversions from smithy StatusCode to http StatusCode. #3637

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

khuey
Copy link

@khuey khuey commented May 9, 2024

Motivation and Context

Making this conversion bidirectional is helpful.

Description

Add impl From<StatusCode> for httpN::StatusCode that does the obvious thing.

Testing

I'm using these conversions in my own project. As all three crates have identical constraints on the status code value the changes are trivially correct.

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

Not clear to me what if anything to do here.


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

@khuey khuey requested a review from a team as a code owner May 9, 2024 18:14
@aajtodd
Copy link
Contributor

aajtodd commented May 28, 2024

Thanks for the contribution!

You'll need to do a few things to be able to have this reviewed and shipped:

  1. refresh the branch
  2. add a changelog entry to CHANGELOG.next.toml
  3. Bump the patch version of aws-smithy-runtime-api

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.

None yet

2 participants