DataBody Class
An AMQP message body of type Data. This represents a list of bytes sections.
- Inheritance
-
DataBody
Constructor
DataBody(c_message, encoding='UTF-8')
Parameters
Name | Description |
---|---|
c_message
Required
|
|
encoding
|
default value: UTF-8
|
Variables
Name | Description |
---|---|
type
|
The body type. This should always be DataType. |
data
|
The data contained in the message body. This returns a generator to iterate over each section in the body, where each section will be a byte string. |
Methods
append |
Append a section to the body. |
append
Append a section to the body.
append(data)
Parameters
Name | Description |
---|---|
data
Required
|
The data to append. |
Attributes
data
type
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for