pikachewie.message – A RabbitMQ message

class pikachewie.message.Message(channel, method, header, body)

A RabbitMQ message.

content_encoding

Return the content encoding as a lowercase string.

Return type:str or NoneType
content_type

Return the content-type as a lowercase string.

Return type:str or NoneType
created_at

Return the message creation time as a datetime.datetime.

Return type:datetime.datetime
expires_at

Return the message expiration time as a datetime.datetime.

Return type:datetime.datetime
is_expired

Whether this message has expired.

Return type:bool
payload

Return the decoded, deserialized contents of the message body.

Return type:any