Expand description
Pure mapping between Envelope and AMQP BasicProperties / headers.
Nothing here touches the broker, so every function can be unit-tested without a running RabbitMQ.
Constants§
- CONTENT_
TYPE_ JSON content-typeset on every published message.- DELIVERY_
MODE_ PERSISTENT delivery-modefor a persistent message.- REASON_
MALFORMED - Reason recorded on bodies that could not be decoded as an
Envelope.
Functions§
- base_
headers - Headers carried by every published envelope.
- dead_
letter_ headers - Headers recorded on a message routed to
q.dead. - dead_
letter_ props - AMQP properties for publishing
envelopeto its dead-letter queue. - malformed_
props - AMQP properties for a body that could not be decoded as an
Envelope. - props_
for - AMQP properties for publishing
envelope.