Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(ghttp): add middleware MiddlewareGzip for compressing response content using gzip #3832

Closed
wants to merge 4 commits into from

Conversation

dwSun
Copy link

@dwSun dwSun commented Sep 30, 2024

Add a new middleware MiddlewareGzip to handle gzip compression of content, which can effectively reduce the length of the returned data and reduce traffic pressure.

@gqcn gqcn changed the title feat(ghttp): add MiddlewareGzip feat(ghttp): add MiddlewareGzip for compressing response content using gzip Oct 8, 2024
@gqcn gqcn changed the title feat(ghttp): add MiddlewareGzip for compressing response content using gzip feat(ghttp): add middleware MiddlewareGzip for compressing response content using gzip Oct 8, 2024
@gqcn
Copy link
Member

gqcn commented Oct 8, 2024

@dwSun Hello, the golint ci failed, please update your codes. Besides, please commit associated unit testing case to cover your codes.

@gqcn
Copy link
Member

gqcn commented Nov 20, 2024

@dwSun Hello, the CI failed, please have a check.

@dwSun
Copy link
Author

dwSun commented Dec 2, 2024

The same code works just fine inside my own project, but when I put it in gf's repository, I have problems testing it.I don't know why yet.

@gqcn
Copy link
Member

gqcn commented Dec 5, 2024

@dwSun Sorry, I could not figure out the issue reason either, so I post an implements for MiddlewareGzip here #4008 Thanks for your contribution, this PR will be closed.

@gqcn gqcn closed this Dec 5, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants