Havret / dotnet-activemq-artemis-client

.NET Client for Apache ActiveMQ Artemis
https://havret.github.io/dotnet-activemq-artemis-client/
MIT License
63 stars 11 forks source link

Support for content-encoding field #506

Closed Havret closed 1 day ago

Havret commented 1 day ago

Feature description

Extend Message API with content-encoding field. The Content-Encoding property is used as a modifier to the content-type. When present, its value indicates what additional content encodings have been applied to the application-data, and thus what decoding mechanisms must be applied in order to obtain the media-type referenced by the content-type header field.

Feature in action

var message = new Message("foo")
{
    ContentEncoding = "gzip"
};

Additional context

OASIS Advanced Message Queuing Protocol(AMQP) Version 1.0 - section 3.2.4