<PackageReference Include="Refit" Version="15.2.0" />

Refit.RequestCompression

public enum RequestCompression
The content coding applied to a request body before it is sent.
Brotli = 3

Compress with Brotli and send Content-Encoding: br. Requires .NET 8.0 or later.

Default = 0

Take the coding from RequestCompression.

GZip = 2

Compress with gzip and send Content-Encoding: gzip.

None = 1

Send the body uncompressed, whatever RequestCompression says.

Compress with Zstandard and send Content-Encoding: zstd. Requires .NET 11.0 or later.