This package provides improved compression schemes for Buf Connect.
Compression is provided from the github.com/andybalholm/brotli package.
The brotli.WithCompression
function will return an option that allow both client and servers to compress and decompress using brotli.
import "go.withmatt.com/connect-brotli"
opts := brotli.WithCompression()
To enable client compression and force a specific method use connect.WithSendCompression(brotli.Name)
.
For more details and options see the documentation.