encode_message
faststream.broker.parsers.encode_message #
Encodes a message.
PARAMETER | DESCRIPTION |
---|---|
msg | The message to be encoded. TYPE: |
RETURNS | DESCRIPTION |
---|---|
Tuple[bytes, Optional[ContentType]] | A tuple containing the encoded message as bytes and the content type of the message. |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Source code in faststream/broker/parsers.py
Last update: 2023-11-13