RawMessage
faststream.redis.parser.RawMessage #
Bases: BaseModel
A class to represent a raw Redis message.
build classmethod
#
build(message: Union[Sequence[SendableMessage], SendableMessage], reply_to: str = '', headers: Optional[AnyDict] = None, correlation_id: Optional[str] = None) -> RawMessage
Source code in faststream/redis/parser.py
encode classmethod
#
encode(message: Union[Sequence[SendableMessage], SendableMessage], reply_to: str = '', headers: Optional[AnyDict] = None, correlation_id: Optional[str] = None) -> str