BatchPublishCommand
faststream.response.BatchPublishCommand #
BatchPublishCommand(
body: Any,
/,
*bodies: Any,
_publish_type: PublishType,
reply_to: str = "",
destination: str = "",
correlation_id: str | None = None,
headers: dict[str, Any] | None = None,
)
Bases: PublishCommand
Source code in faststream/response/response.py
as_publish_command #
as_publish_command() -> PublishCommand
Method to transform handlers' Response result to DTO for publishers.
Source code in faststream/response/response.py
add_headers #
from_cmd classmethod #
from_cmd(
cmd: PublishCommand, *, batch: bool = False
) -> BatchPublishCommand