TypedHeader describes a RabbitMQ Message Header or Queue / Exchange / Binding argument; its type is known, and
implicit proof is required to prove that the type can be safely converted to a supported RabbitMQ type.
If you use custom headers, using TypedHeader is preferred over Header. For example, if you use the header
x-retry, and this header contains an integer, using TypedHeader to extract and set the header will enable the
type system enforce that fact:
TypedHeader describes a RabbitMQ Message Header or Queue / Exchange / Binding argument; its type is known, and implicit proof is required to prove that the type can be safely converted to a supported RabbitMQ type.
If you use custom headers, using TypedHeader is preferred over Header. For example, if you use the header
x-retry
, and this header contains an integer, using TypedHeader to extract and set the header will enable the type system enforce that fact: