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 ¶
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.