go-resty / resty

Simple HTTP and REST client library for Go
MIT License
9.64k stars 679 forks source link

Brotli support #759

Open AsyncAlchemist opened 7 months ago

AsyncAlchemist commented 7 months ago

I would like to request that support for Brotli compression be added. There is a very good library from github.com/andybalholm/brotli that implements native Brotli compression/decompression in Go, so it's really only a few lines of code.

Brotli is quickly replacing gzip as the go-to compression standard for text-based responses (html,json,css,etc).

If you feel this could be useful, I'm happy to help. Feel free to assign me the issue and I will try to implement it.

jeevatkm commented 4 months ago

@AsyncAlchemist, as of now, Go still needs to add Brotli support. I will provide a mechanism/interface to add an external compression library in the v3.