Refactor RequestChecksumInterceptor into distinct interceptors#4384
Merged
ysaito1001 merged 5 commits intomainfrom Nov 10, 2025
Merged
Refactor RequestChecksumInterceptor into distinct interceptors#4384ysaito1001 merged 5 commits intomainfrom
RequestChecksumInterceptor into distinct interceptors#4384ysaito1001 merged 5 commits intomainfrom
Conversation
|
A new generated diff is ready to view.
A new doc preview is ready to view. |
landonxjames
approved these changes
Nov 7, 2025
Contributor
landonxjames
left a comment
There was a problem hiding this comment.
Looks good, a few questions, but no blockers
...aws-sdk/src/main/kotlin/software/amazon/smithy/rustsdk/AwsChunkedContentEncodingDecorator.kt
Show resolved
Hide resolved
|
A new generated diff is ready to view.
A new doc preview is ready to view. |
|
A new generated diff is ready to view.
A new doc preview is ready to view. |
ysaito1001
added a commit
that referenced
this pull request
Nov 12, 2025
## Motivation and Context Merge the latest main to the `feature/http-1.x` branch, plus replace http-0.x constructs with http-1.x constructs as described in [Tips for merging to feature/http-1.x](#4384) ## Testing - CI: ignore server related failures and semver hazard failure (the type being complained about `Uri` isn't exposed since its enclosing module `request` isn't exposed as pub, which confuses the semver hazard check) ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ --------- Co-authored-by: Landon James <lnj@amazon.com> Co-authored-by: Russell Cohen <rcoh@amazon.com> Co-authored-by: AWS SDK Rust Bot <aws-sdk-rust-primary@amazon.com> Co-authored-by: AWS SDK Rust Bot <97246200+aws-sdk-rust-ci@users.noreply.github.com> Co-authored-by: vcjana <vcjana@amazon.com> Co-authored-by: Jason Gin <67525213+jasgin@users.noreply.github.com> Co-authored-by: Aaron Todd <aajtodd@users.noreply.github.com>
drganjoo
pushed a commit
that referenced
this pull request
Dec 3, 2025
Merge the latest main to the `feature/http-1.x` branch, plus replace http-0.x constructs with http-1.x constructs as described in [Tips for merging to feature/http-1.x](#4384) - CI: ignore server related failures and semver hazard failure (the type being complained about `Uri` isn't exposed since its enclosing module `request` isn't exposed as pub, which confuses the semver hazard check) ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ --------- Co-authored-by: Landon James <lnj@amazon.com> Co-authored-by: Russell Cohen <rcoh@amazon.com> Co-authored-by: AWS SDK Rust Bot <aws-sdk-rust-primary@amazon.com> Co-authored-by: AWS SDK Rust Bot <97246200+aws-sdk-rust-ci@users.noreply.github.com> Co-authored-by: vcjana <vcjana@amazon.com> Co-authored-by: Jason Gin <67525213+jasgin@users.noreply.github.com> Co-authored-by: Aaron Todd <aajtodd@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
This PR breaks up
RequestChecksumInterceptorinto two interceptors:RequestChecksumInterceptorandAwsChunkedContentEncodingInterceptorwith additional code restructuring to support the upcoming aws-chunked content encoding enhancement.Description
RequestChecksumInterceptorpreviously handled two distinct responsibilities:This refactor extracts the second responsibility (aws-chunked logic) into
AwsChunkedContentEncodingInterceptor, aiming to enable it via the dedicated trait when available in Smithy.In addition, both interceptors now wrap bodies in
modify_before_transmitinstead ofmodify_before_signingper design requirements.Tips for merging to
feature/http-1.xThis refactor reluctantly adds
http_0xconstructs that will conflict withfeature/http-1.x. Update these files when merging:aws-inlineable/src/http_request_checksum.rs- Apply same 1.x updates as done in branch (note:test_checksum_body_is_retryablewas removed as it tested a utility only used in streaming cases against non-streaming bodies)aws-inlineable/src/aws_chunked.rs- Use 1.x for header names, values, and body trait methods in unit tests, as inhttp_request_checksum.rsaws/rust-runtime/aws-runtime/src/content_encoding.rs- Needs 1.x updatesto
because the
.encoded_length()method has been moved fromAwsChunkedBodytoAwsChunkedBodyOptions(due to thecontent-lengthheader needing encoded length during signing but body creation deferred tomodify_before_transmit)Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.