gf icon indicating copy to clipboard operation
gf copied to clipboard

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

Open dwSun opened this issue 1 year ago • 1 comments

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.

dwSun avatar Sep 30 '24 08:09 dwSun

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

gqcn avatar Oct 08 '24 14:10 gqcn

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

gqcn avatar Nov 20 '24 12:11 gqcn

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.

dwSun avatar Dec 02 '24 13:12 dwSun

@dwSun Sorry, I could not figure out the issue reason either, so I post an implements for MiddlewareGzip here https://github.com/gogf/gf/pull/4008 Thanks for your contribution, this PR will be closed.

gqcn avatar Dec 05 '24 07:12 gqcn