How to get all compression formats? #753
|
I use github.com/go-chi/chi/v5/middleware.Compress(5). I need to expose the supported compression encoders in the XML response of my server. (To be concrete, it is the |
Answered by
VojtechVitek
Oct 1, 2022
Replies: 1 comment
|
I think you can hardcode gzip and deflate. They will not go away. The compress middleware doesn't have |
0 replies
Answer selected by
bronger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you can hardcode gzip and deflate. They will not go away.
The compress middleware doesn't have
GetEncoders()method right now, perhaps it could be added. But then you'd have to instantiate your Compressor by hand.