Class GZipMessageSerializer

Assembly: redb.Route.dll

GZip as a data format: Marshal("application/gzip") compresses the body, Unmarshal<string>("application/gzip") decompresses it.

public sealed class GZipMessageSerializer : BinaryWrapperSerializer, IMessageSerializer

Inheritance

Object→BinaryWrapperSerializer→GZipMessageSerializer

Implements

Inherited Members

Properties

ContentType

Content type this serializer handles (e.g., "application/json").

public override string ContentType { get; }

FormatName

Short format name for error messages (GZip).

protected override string FormatName { get; }

MediaTypes

All media types this serializer can handle, including structured-suffix aliases

public override IReadOnlyCollection<string> MediaTypes { get; }

Methods

Decode(byte[])

Unwraps the data (decode / decompress).

protected override byte[] Decode(byte[] data)

Encode(byte[])

Wraps the payload (encode / compress).

protected override byte[] Encode(byte[] payload)

Constructors