Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 23 for EventSourceResponse (0.52 seconds)

  1. docs/ko/docs/tutorial/server-sent-events.md

    ///
    
    ## FastAPI로 SSE 스트리밍 { #stream-sse-with-fastapi }
    
    FastAPI에서 SSE를 스트리밍하려면, 경로 처리 함수에서 `yield`를 사용하고 `response_class=EventSourceResponse`를 설정하세요.
    
    `EventSourceResponse`는 `fastapi.sse`에서 임포트합니다:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    각 `yield`된 항목은 JSON으로 인코딩되어 SSE 이벤트의 `data:` 필드로 전송됩니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:56:39 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/tutorial/server-sent-events.md

    ///
    
    ## 使用 FastAPI 串流 SSE { #stream-sse-with-fastapi }
    
    要在 FastAPI 中串流 SSE,請在你的路徑操作函式(path operation function)中使用 `yield`,並設定 `response_class=EventSourceResponse`。
    
    從 `fastapi.sse` 匯入 `EventSourceResponse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    每個 `yield` 的項目都會以 JSON 編碼並放在 SSE 事件的 `data:` 欄位中送出。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  3. docs/zh/docs/tutorial/server-sent-events.md

    如果你想流式传输二进制数据(例如视频或音频),请查看高级指南:[流式传输数据](../advanced/stream-data.md)。
    
    ///
    
    ## 使用 FastAPI 流式传输 SSE { #stream-sse-with-fastapi }
    
    要在 FastAPI 中流式传输 SSE,在你的*路径操作函数*中使用 `yield`,并设置 `response_class=EventSourceResponse`。
    
    从 `fastapi.sse` 导入 `EventSourceResponse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    每个被 yield 的项会被编码为 JSON,并放入 SSE 事件的 `data:` 字段发送。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  4. docs/ja/docs/tutorial/server-sent-events.md

    ///
    
    ## FastAPI で SSE をストリーミング { #stream-sse-with-fastapi }
    
    FastAPI で SSE をストリーミングするには、*path operation 関数*で `yield` を使い、`response_class=EventSourceResponse` を設定します。
    
    `EventSourceResponse` は `fastapi.sse` からインポートします:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    yield された各アイテムは JSON にエンコードされ、SSE イベントの `data:` フィールドで送信されます。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:55:22 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  5. fastapi/.agents/skills/fastapi/SKILL.md

    ## Streaming (JSON Lines, SSE, bytes)
    
    See [the streaming reference](references/streaming.md) for JSON Lines, Server-Sent Events (`EventSourceResponse`, `ServerSentEvent`), and byte streaming (`StreamingResponse`) patterns.
    
    ## Tooling
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  6. fastapi/routing.py

        FastAPIError,
        RequestValidationError,
        ResponseValidationError,
        WebSocketRequestValidationError,
    )
    from fastapi.sse import (
        _PING_INTERVAL,
        KEEPALIVE_COMMENT,
        EventSourceResponse,
        ServerSentEvent,
        format_sse_event,
    )
    from fastapi.types import DecoratedCallable, IncEx
    from fastapi.utils import (
        create_model_field,
        generate_unique_id,
        get_value_or_default,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/server-sent-events.md

    ///
    
    ## SSE mit FastAPI streamen { #stream-sse-with-fastapi }
    
    Um SSE mit FastAPI zu streamen, verwenden Sie `yield` in Ihrer *Pfadoperation-Funktion* und setzen Sie `response_class=EventSourceResponse`.
    
    Importieren Sie `EventSourceResponse` aus `fastapi.sse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:48:21 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/server-sent-events.md

    ///
    
    ## Transmitir SSE com FastAPI { #stream-sse-with-fastapi }
    
    Para transmitir SSE com FastAPI, use `yield` na sua função de operação de rota e defina `response_class=EventSourceResponse`.
    
    Importe `EventSourceResponse` de `fastapi.sse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Cada item produzido é codificado como JSON e enviado no campo `data:` de um evento SSE.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:13 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/server-sent-events.md

    ///
    
    ## Streaming de SSE con FastAPI { #stream-sse-with-fastapi }
    
    Para hacer streaming de SSE con FastAPI, usa `yield` en tu path operation function y establece `response_class=EventSourceResponse`.
    
    import `EventSourceResponse` de `fastapi.sse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Cada ítem producido con `yield` se codifica como JSON y se envía en el campo `data:` de un evento SSE.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 5K bytes
    - Click Count (0)
  10. docs/fr/docs/tutorial/server-sent-events.md

    ///
    
    ## Diffuser des SSE avec FastAPI { #stream-sse-with-fastapi }
    
    Pour diffuser des SSE avec FastAPI, utilisez `yield` dans votre *fonction de chemin d'accès* et définissez `response_class=EventSourceResponse`.
    
    Importez `EventSourceResponse` depuis `fastapi.sse` :
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:33:45 GMT 2026
    - 5.3K bytes
    - Click Count (0)
Back to Top