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

Support middleware compression with Zlib, LZW, Brotli, and Zstd encoders #220

Merged

Conversation

AidanKenney
Copy link
Contributor

Issue(s): #197, #198, #199, #200

This pull request provides new Encoders for the Goyave compress middleware using the following algorithms:

  • Zlib (deflate)
  • LZW
  • Brotli
  • Zstd

Tests and comments are included

This pull request provides new Encoders for the Goyave compress
middleware using the following algorithms:
- Zlib (deflate)
- LZW
- Brotli
- Zstd

Tests and comments are included.
@coveralls
Copy link

coveralls commented Jul 28, 2024

Pull Request Test Coverage Report for Build 10181781816

Details

  • 39 of 39 (100.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 97.453%

Totals Coverage Status
Change from base Build 10073191245: 0.02%
Covered Lines: 6275
Relevant Lines: 6439

💛 - Coveralls

@System-Glitch System-Glitch self-requested a review July 29, 2024 12:55
@System-Glitch System-Glitch added the feature request Request for new feature implementation label Jul 29, 2024
Copy link
Member

@System-Glitch System-Glitch left a comment

Choose a reason for hiding this comment

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

Four PR in one! Thanks a lot! It just needs a few minor adjustments but otherwise it looks good to me. 👍🏻

middleware/compress/brotli.go Outdated Show resolved Hide resolved
middleware/compress/brotli.go Outdated Show resolved Hide resolved
middleware/compress/brotli.go Show resolved Hide resolved
middleware/compress/lzw.go Outdated Show resolved Hide resolved
middleware/compress/lzw.go Outdated Show resolved Hide resolved
middleware/compress/zlib.go Outdated Show resolved Hide resolved
middleware/compress/zlib.go Outdated Show resolved Hide resolved
middleware/compress/lzw.go Outdated Show resolved Hide resolved
middleware/compress/zlib.go Show resolved Hide resolved
middleware/compress/lzw.go Outdated Show resolved Hide resolved
middleware/compress/lzw_test.go Outdated Show resolved Hide resolved
middleware/compress/zstd_test.go Outdated Show resolved Hide resolved
middleware/compress/zstd_test.go Outdated Show resolved Hide resolved
@AidanKenney
Copy link
Contributor Author

Thanks @System-Glitch @ccoVeille for your reviews! I think I have incorporated everything.

Tests appears to be failing on /websocket, but I don't think these code changes are related. Please let me know if anything else is needed.

@System-Glitch
Copy link
Member

System-Glitch commented Jul 31, 2024

Tests appears to be failing on /websocket

It's the db timeout plugin. It happens sometimes when the runner is a bit too busy. I'm not sure how I could make this test more consistent.

Copy link
Member

@System-Glitch System-Glitch left a comment

Choose a reason for hiding this comment

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

LGTM

middleware/compress/brotli_test.go Outdated Show resolved Hide resolved
middleware/compress/lzw_test.go Show resolved Hide resolved
@System-Glitch System-Glitch merged commit 6a07da2 into go-goyave:master Jul 31, 2024
4 checks passed
@System-Glitch
Copy link
Member

Merged! Thank you very much. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for new feature implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants