Can you add a custom header to the AMQP messages?

1,511 views
Skip to first unread message

Virgil Kuruthers

unread,
Aug 21, 2014, 10:23:16 PM8/21/14
to pika-...@googlegroups.com
If so, how do you do it with Pika?

Gavin M. Roy

unread,
Aug 22, 2014, 9:51:43 AM8/22/14
to pika-...@googlegroups.com, Virgil Kuruthers
properties = pika.BasicProperties(headers={‘foo’: ‘bar’})
channel.basic_publish(exchange, routing_key, body, properties)

On August 21, 2014 at 10:23:17 PM, Virgil Kuruthers (vkuru...@gmail.com) wrote:

If so, how do you do it with Pika?
--
You received this message because you are subscribed to the Google Groups "Pika" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pika-python...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages