|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /usr/local/lib/python3.9/site-packages/amqp/__pycache__/ |
a
��Sh
� @ s4 d Z ddlmZ ddlmZ dZG dd� de�ZdS )zAMQP Messages.� )�GenericContent)�Basic)�Messagec sL e Zd ZdZejZg d�Zd� fdd� ZdZe dd � �Z
e d
d� �Z� ZS )
r a A Message for use with the Channel.basic_* methods.
Expected arg types
body: string
children: (not supported)
Keyword properties may include:
content_type: shortstr
MIME content type
content_encoding: shortstr
MIME content encoding
application_headers: table
Message header field table, a dict with string keys,
and string | int | Decimal | datetime | dict values.
delivery_mode: octet
Non-persistent (1) or persistent (2)
priority: octet
The message priority, 0 to 9
correlation_id: shortstr
The application correlation identifier
reply_to: shortstr
The destination to reply to
expiration: shortstr
Message expiration specification
message_id: shortstr
The application message identifier
timestamp: unsigned long
The message timestamp
type: shortstr
The message type name
user_id: shortstr
The creating user id
app_id: shortstr
The creating application id
cluster_id: shortstr
Intra-cluster routing identifier
Unicode bodies are encoded according to the 'content_encoding'
argument. If that's None, it's set to 'UTF-8' automatically.
Example::
msg = Message('hello world',
content_type='text/plain',
application_headers={'foo': 7})
))�content_type�s)�content_encodingr )�application_headers�F)Z
delivery_mode�o)�priorityr
)Zcorrelation_idr )Zreply_tor )Z
expirationr )Z
message_idr )� timestamp�L)�typer )Zuser_idr )Zapp_idr )Z
cluster_idr � Nc s( t � jf i |�� d | _|| _|| _d S )N)�super�__init__�
delivery_info�body�channel)�selfr �childrenr �
properties�� __class__� �</usr/local/lib/python3.9/site-packages/amqp/basic_message.pyr g s zMessage.__init__)r r r c C s | j �d�S )Nr )r �get�r r r r �headerst s zMessage.headersc C s | j �d�S )N�delivery_tag)r r r r r r r x s zMessage.delivery_tag)r NN)
�__name__�
__module__�__qualname__�__doc__r ZCLASS_IDZ
PROPERTIESr � __slots__�propertyr r �
__classcell__r r r r r s >
r N)r# Z
serializationr �specr �__all__r r r r r �<module> s