Messages for AMQP
amqpy.message.
Message
(amqpy.message.GenericContent)[source]¶Bases: amqpy.message.GenericContent
A Message for use with the Channel.basic_* methods
body
¶Message body (bytes or str or unicode)
channel
¶Associated channel, set after receiving a message (amqpy.channel.Channel)
delivery_info
¶Delivery info, set after receiving a message (dict)
__init__
(body='', channel=None, **properties)[source]¶If body is a str, then content_encoding will automatically be set to ‘UTF-8’, unless explicitly specified.
Example:
msg = Message('hello world', content_type='text/plain', application_headers={'foo': 7})
Parameters: |
|
---|