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
I find the method Body() that is supposed to give me the raw body. But when I check the source code, it seems to decompress some encodings by default.
For example, when it is gzip, I can call Body() to get the decompressed body, while it is snappy, I will have to handle the decompression logic myself.
Could you teach me if there's a better way to handle decompression?
Question Description
I want to support multi-
Content-Encoding
.I find the method
Body()
that is supposed to give me the raw body. But when I check the source code, it seems to decompress some encodings by default.For example, when it is
gzip
, I can callBody()
to get the decompressed body, while it issnappy
, I will have to handle the decompression logic myself.Could you teach me if there's a better way to handle decompression?
fiber/ctx.go
Lines 281 to 311 in 8ec62a6
Code Snippet (optional)
No response
Checklist:
The text was updated successfully, but these errors were encountered: