Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 809 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 809 Bytes

connect-brotli

GoDoc

This package provides improved compression schemes for Buf Connect.

Compression is provided from the github.com/andybalholm/brotli package.

Usage

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.