Repository navigation
[Mirror of #855] Implement standard request compression for generated Python clients - #1004
Closed
stobrien89 wants to merge 10 commits into
Closed
stobrien89 wants to merge 10 commits into
stobrien89 wants to merge 10 commits into
Conversation
- Treat AWS_DISABLE_REQUEST_COMPRESSION as case-sensitive true/false. - Use the same gzip level (6) for buffered and streamed bodies. - Test that invalid disable values are rejected. - Add compression config fields only to services with a compressible operation, matching the native Python generator.
Develop split the runtime into sync and async code paths and reworked AWS config resolution. Request compression is re-applied on that structure: - Compression runs in the shared protocols, so sync clients compress too. Sync streams use a seekable sync gzip reader. Async streams use the async reader, which now lives in smithy_http.aio.compression and is supplied by the async protocol mixin. - The compression settings and resolvers follow develop's config pattern and appear on both AwsConfig and AsyncAwsConfig. - The compression protocol vectors now pass for the native Python generator, so they are no longer expected failures.
Keeps both the host prefix and request compression resolvers in the resolvers __all__ and the API snapshot.
Python 3.14 adds a compression package to the standard library, which shadowed the generated package of the same name, so pyright failed on 3.14 and 3.15.
Contributor
Author
|
closing since #855 has been merged |
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.
Issue #, if available: N/A
Description of changes:
Mirrors #855 from a branch in this repo so the
aws-sdk-pr-buildworkflow runs. Not for merging; review and merge #855.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.