You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem?
Partly yes, I have an API that I rent out to my clients, the api's core function requires uploading a really big json, one of my clients came up with the idea of compressing the payload to reduce upload latency. He used the Content-Encoding: gzip headers, to my surprise, the payload didn't get uncompressed in the default fiber context body though. Describe the solution you'd like
Have automatic compression detection and use that to decompress the body of the request Describe alternatives you've considered
Turns out fasthttp has in fact an implementation for that, and for other compressions as well. I was able to write a simple switch statement and just do ctx.Request().BodyGunzip() and retrieve the uncompressed body Additional context
Would make it a really cool feature!
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Partly yes, I have an API that I rent out to my clients, the api's core function requires uploading a really big json, one of my clients came up with the idea of compressing the payload to reduce upload latency. He used the
Content-Encoding: gzip
headers, to my surprise, the payload didn't get uncompressed in the default fiber context body though.Describe the solution you'd like
Have automatic compression detection and use that to decompress the body of the request
Describe alternatives you've considered
Turns out fasthttp has in fact an implementation for that, and for other compressions as well. I was able to write a simple switch statement and just do
ctx.Request().BodyGunzip()
and retrieve the uncompressed bodyAdditional context
Would make it a really cool feature!
The text was updated successfully, but these errors were encountered: