EventSourceResponse
Streaming response with text/event-stream media type.
Use as response_class=EventSourceResponse on a path operation that uses yield
to enable Server Sent Events (SSE) responses.
Attributes
| Attribute | Type | Description |
|---|---|---|
| media_type | = "text/event-stream" | The media type for the streaming response, which is set to "text/event-stream" for Server Sent Events (SSE) responses. |