Skip to content

Wire aws-chunked response decoder into sync and async response paths - #7569

Open
S-Saranya1 wants to merge 1 commit into
somepal/aws-chunked-response-decoderfrom
somepal/wire-chunked-response-decoder
Open

S-Saranya1 wants to merge 1 commit into
somepal/aws-chunked-response-decoderfrom
somepal/wire-chunked-response-decoder

Conversation

@S-Saranya1

@S-Saranya1 S-Saranya1 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Motivation and Context

This PR wires the chunked decoder(#7541) to the sync and async response paths. This runs after 'afterTransmission' stage and before 'modifyHttpResponse' stage, trailers are made available for later steps through execution attributes.

Modifications

  • AwsChunkedResponseDecodingUtils: New file which does header handling and is shared by sync and async. It decides whether to decode, reads x-amz-decoded-content-length and x-amz-trailer headers, and rewrites Content-Length / Content-Encoding.
  • AwsChunkedResponseDecodingStage(sync) and AsyncAwsChunkedResponseDecodingHandler (async): wrap the body in the decoder, rewrite the headers, and save the trailers.
  • AmazonSyncHttpClient and BaseAsyncClientHandler: Add the new stage and handler between afterTransmission and modifyHttpResponse.
  • SdkInternalExecutionAttribute: Two new attributes. AWS_CHUNKED_RESPONSE_DECODING turns decoding on for an operation, and
    AWS_CHUNKED_RESPONSE_TRAILERS gives access to the trailers once the body has been read.

Testing

  • Added unit tests for all new files
  • Also added tests to make sure afterTransmission see the raw response and later stages see the decoded one.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance improvement (non-breaking change which improves latency, throughput, or resource use)
  • Deprecation (marks existing functionality as deprecated)
  • Removal (removes previously deprecated functionality)
  • Documentation (changes to documentation only)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

AI tools

  • I wrote this pull request description myself, not with an AI tool
  • I have reviewed all changes in this pull request myself, including any generated by AI tools

License

  • I confirm that this pull request can be released under the Apache 2 license

@S-Saranya1
S-Saranya1 requested a review from a team as a code owner November 18, 2026 19:15
@S-Saranya1
S-Saranya1 added this pull request to stack #7570 November 18, 2026 19:23
@S-Saranya1
S-Saranya1 requested review from davidh44 and kdaily and removed request for kdaily November 20, 2026 23:01

This branch has not been deployed

No deployments
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.

1 participant