brotli

package
v1.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package brotli wraps the Brotli implementation used for compression, keeping the rest of the module independent of the underlying library.

The implementation is a vendored copy of github.com/andybalholm/brotli (the established pure-Go port of the reference implementation) under internal/, kept verbatim with its license so it stays diffable against upstream, which sees only a handful of changes per year. The upstream http.go (an HTTP compressor helper pulling a flate subpackage) is omitted. A compression codec is correctness critical, so it is wrapped rather than rewritten; only this facade is part of the module's API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBrotliData

func MakeBrotliData(ctx context.Context, data []byte) ([]byte, error)

func NewReader added in v1.11.1

func NewReader(reader io.Reader) io.Reader

NewReader returns a reader that decompresses Brotli data from the provided reader.

Types

This section is empty.

Directories

Path Synopsis
internal
brotli/matchfinder
The matchfinder package defines reusable components for data compression.
The matchfinder package defines reusable components for data compression.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL