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