StreamRoute
faststream.broker.fastapi.StreamRoute #
StreamRoute(path: Union[NameRequired, str, None], *extra: Union[NameRequired, str], endpoint: Union[Callable[P_HandlerParams, T_HandlerReturn], HandlerCallWrapper[MsgType, P_HandlerParams, T_HandlerReturn]], broker: BrokerAsyncUsecase[MsgType, Any], dependencies: Sequence[Depends], provider_factory: Callable[[], Any], **handle_kwargs: Any)
Bases: BaseRoute
, Generic[MsgType, P_HandlerParams, T_HandlerReturn]
A class representing a stream route.
Initialize a class instance.
PARAMETER | DESCRIPTION |
---|---|
path | The path of the instance. TYPE: |
*extra | Additional arguments. TYPE: |
endpoint | The endpoint of the instance. TYPE: |
broker | The broker of the instance. TYPE: |
dependencies | The dependencies of the instance. TYPE: |
provider_factory | Provider factory for dependency overrides. |
**handle_kwargs | Additional keyword arguments. TYPE: |
RETURNS | DESCRIPTION |
---|---|
None | None. |