LogicPublisher
faststream.nats.publisher.LogicPublisher dataclass
#
Bases: BasePublisher[Msg]
A class to represent a NATS publisher.
calls class-attribute
instance-attribute
#
headers class-attribute
instance-attribute
#
include_in_schema class-attribute
instance-attribute
#
mock class-attribute
instance-attribute
#
get_payloads #
Source code in faststream/broker/publisher.py
publish async
#
publish(
message: SendableMessage = "",
reply_to: str = "",
correlation_id: Optional[str] = None,
headers: Optional[Dict[str, str]] = None,
**producer_kwargs: Any
) -> Optional[DecodedMessage]
Source code in faststream/nats/publisher.py
reset_test #
schema #
Returns the schema of the API operation as a dictionary of channel names and channel objects.