Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for FileResponse (0.06 sec)

  1. docs/en/docs/advanced/custom-response.md

    /// tip
    
    Notice that here as we are using standard `open()` that doesn't support `async` and `await`, we declare the path operation with normal `def`.
    
    ///
    
    ### `FileResponse` { #fileresponse }
    
    Asynchronously streams a file as the response.
    
    Takes a different set of arguments to instantiate than the other response types:
    
    * `path` - The file path to the file to stream.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/custom-response.md

    /// tip | Tipp
    
    Beachten Sie, dass wir, da wir Standard-`open()` verwenden, welches `async` und `await` nicht unterstützt, hier die Pfadoperation mit normalen `def` deklarieren.
    
    ///
    
    ### `FileResponse` { #fileresponse }
    
    Streamt eine Datei asynchron als Response.
    
    Nimmt zur Instanziierung einen anderen Satz von Argumenten entgegen als die anderen Response-Typen:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. docs/es/docs/advanced/custom-response.md

    /// tip | Consejo
    
    Nota que aquí como estamos usando `open()` estándar que no admite `async` y `await`, declaramos el path operation con `def` normal.
    
    ///
    
    ### `FileResponse` { #fileresponse }
    
    Transmite un archivo asincrónicamente como response.
    
    Toma un conjunto diferente de argumentos para crear un instance que los otros tipos de response:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. docs/ru/docs/advanced/custom-response.md

    /// tip | Совет
    
    Заметьте, что здесь мы используем стандартный `open()`, который не поддерживает `async` и `await`, поэтому объявляем операцию пути обычной `def`.
    
    ///
    
    ### `FileResponse` { #fileresponse }
    
    Асинхронно отправляет файл как ответ.
    
    Для создания экземпляра принимает иной набор аргументов, чем другие типы ответов:
    
    - `path` — путь к файлу, который будет отправлен.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  5. docs/ru/docs/advanced/additional-responses.md

    {* ../../docs_src/additional_responses/tutorial002_py310.py hl[17:22,26] *}
    
    /// note | Примечание
    
    Учтите, что изображение нужно возвращать напрямую, используя `FileResponse`.
    
    ///
    
    /// info | Информация
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/custom-response.md

    /// tip | Dica
    
    Perceba que aqui estamos utilizando o `open()` da biblioteca padrão que não suporta `async` e `await`, e declaramos a operação de rota com o `def` básico.
    
    ///
    
    ### `FileResponse` { #fileresponse }
    
    Envia um arquivo  de forma assíncrona e contínua (stream).
    
    Recebe um conjunto de argumentos do construtor diferente dos outros tipos de resposta:
    
    * `path` - O caminho do arquivo que será transmitido
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/additional-responses.md

    {* ../../docs_src/additional_responses/tutorial002_py310.py hl[17:22,26] *}
    
    /// note | Hinweis
    
    Beachten Sie, dass Sie das Bild direkt mit einer `FileResponse` zurückgeben müssen.
    
    ///
    
    /// info | Info
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10K bytes
    - Viewed (0)
  8. docs/ja/docs/advanced/custom-response.md

    {* ../../docs_src/custom_response/tutorial008.py hl[2,10:12,14] *}
    
    /// tip | 豆知識
    
    ここでは `async` や `await` をサポートしていない標準の `open()` を使っているので、通常の `def` でpath operationを宣言していることに注意してください。
    
    ///
    
    ### `FileResponse`
    
    レスポンスとしてファイルを非同期的にストリームします。
    
    他のレスポンスタイプとは異なる引数のセットを受け取りインスタンス化します。
    
    * `path` - ストリームするファイルのファイルパス。
    * `headers` - 含めたい任意のカスタムヘッダーの辞書。
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. docs/ko/docs/advanced/custom-response.md

       이 방식을 사용하면 `with` 블록 안에서 파일을 열 수 있어, 작업이 완료된 후 파일과 같은 객체가 닫히는 것을 보장할 수 있습니다.
    
    /// tip | 팁
    
    여기서 표준 `open()`을 사용하고 있기 때문에 `async`와 `await`를 지원하지 않습니다. 따라서 경로 작업은 일반 `def`로 선언합니다.
    
    ///
    
    ### `FileResponse`
    
    파일을 비동기로 스트리밍하여 응답합니다.
    
    다른 응답 유형과는 다른 인수를 사용하여 객체를 생성합니다:
    
    * `path` - 스트리밍할 파일의 경로.
    * `headers` - 딕셔너리 형식의 사용자 정의 헤더.
    * `media_type` - 미디어 타입을 나타내는 문자열. 설정되지 않은 경우 파일 이름이나 경로를 사용하여 추론합니다.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Feb 15 11:21:20 UTC 2025
    - 13.4K bytes
    - Viewed (0)
Back to top