Header describes a RabbitMQ Message Header or Queue / Exchange / Binding argument; its type is unknown, but the
subspace of valid RabbitMQ types are modeled with HeaderValue, preventing accidental usage of an unsupported
type by RabbitMQ.
If you use custom headers, using TypedHeader is preferred over Header.
You can instantiate an UnboundHeader for use in both reading and writing the header:
Header describes a RabbitMQ Message Header or Queue / Exchange / Binding argument; its type is unknown, but the subspace of valid RabbitMQ types are modeled with HeaderValue, preventing accidental usage of an unsupported type by RabbitMQ.
If you use custom headers, using TypedHeader is preferred over Header.
You can instantiate an UnboundHeader for use in both reading and writing the header: