decode_message
faststream.broker.parsers.decode_message #
decode_message(message: StreamMessage[Any]) -> DecodedMessage
Decodes a message.
PARAMETER | DESCRIPTION |
---|---|
message | The message to decode. TYPE: |
RETURNS | DESCRIPTION |
---|---|
DecodedMessage | The decoded message. |
RAISES | DESCRIPTION |
---|---|
JSONDecodeError | If the message body cannot be decoded as JSON. |