mapingcompress

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mapingcompress provides the zstd Connect codec that is part of the mAPI-ng wire contract (ADR-0002). Both the client transport and the server ingest handler register it so zstd-compressed request bodies negotiate successfully — a client that sends zstd needs a server that can decode it.

Index

Constants

View Source
const Name = "zstd"

Name is the Connect compression identifier for zstd.

Variables

This section is empty.

Functions

func ClientOptions

func ClientOptions() []connect.ClientOption

ClientOptions register the zstd codec on a Connect client and select it for request bodies. WithAcceptCompression makes zstd available; WithSendCompression then chooses it (it requires the prior registration).

func HandlerOption

func HandlerOption() connect.HandlerOption

HandlerOption registers the zstd codec on a Connect handler so the server can decode zstd-compressed request bodies.

Types

This section is empty.

Jump to

Keyboard shortcuts

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