Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for request decompression with gzip, br, and zstd#5248

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
RubyBit wants to merge6 commits intotensorzero:main
base:main
Choose a base branch
Loading
fromRubyBit:main

Conversation

@RubyBit
Copy link

@RubyBitRubyBit commentedDec 17, 2025
edited
Loading

Made some changes to supportgzip,br andzstd content encodings. The changes are rather simple, I just added theRequestDecompressionLayer as was discussed and then some tests which test if the gateway is able to decompress it successfully.

Lmk for any changes!

Another change I did was a change on the gateway listening interface as on Windows it fails for 0.0.0.0 with AddrNotAvailable (I just added a conditional compilation for win).

ellipsis-dev[bot] reacted with rocket emoji
CopilotAI review requested due to automatic review settingsDecember 17, 2025 17:45
@github-actions
Copy link
Contributor

github-actionsbot commentedDec 17, 2025
edited
Loading

All contributors have signed the CLA ✍️ ✅
Posted by theCLA Assistant Lite bot.

@GabrielBianconi
Copy link
Member

Hi@RubyBit - thanks for the PR. Could you please accept the CLA above?

Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for request decompression in the gateway, enabling clients to send compressed request bodies using gzip, br (Brotli), or zstd encodings. The implementation uses tower-http'sRequestDecompressionLayer middleware and includes comprehensive test coverage for all three compression formats.

  • AddedRequestDecompressionLayer middleware to the gateway router to transparently decompress incoming requests
  • Implemented test coverage for gzip, brotli, and zstd compression formats
  • Enhanced test infrastructure with Windows-specific socket address handling

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
gateway/src/router.rsAddedRequestDecompressionLayer to the middleware stack with support for gzip, br, and zstd encodings
gateway/tests/decompression.rsNew test file with compression helper functions and three comprehensive tests validating each supported encoding format
gateway/Cargo.tomlAdded tower-http decompression features and test dependencies (flate2, zstd, brotli)
gateway/tests/common/mod.rsUpdated test helper to use localhost on Windows instead of 0.0.0.0 to avoid AddrNotAvailable errors
Cargo.lockUpdated lock file with new dependencies for compression support

@RubyBit
Copy link
Author

I have read the Contributor License Agreement (CLA) and hereby sign the CLA.

github-actionsbot added a commit that referenced this pull requestDec 17, 2025
RubyBitand others added2 commitsDecember 17, 2025 19:52
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
CopilotAI review requested due to automatic review settingsDecember 17, 2025 17:53
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@GabrielBianconiGabrielBianconiGabrielBianconi left review comments

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

@Aaron1011Aaron1011

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@RubyBit@GabrielBianconi@Aaron1011

[8]ページ先頭

©2009-2025 Movatter.jp