Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 513 for tutorial009b_py39 (0.08 sec)

  1. docs_src/python_types/tutorial009b_py39.py

    Sebastián Ramírez <******@****.***> 1766004103 -0800
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 164 bytes
    - Viewed (0)
  2. docs_src/custom_response/tutorial009b_py39.py

    Sebastián Ramírez <******@****.***> 1766004103 -0800
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 217 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_custom_response/test_tutorial009b.py

    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.custom_response import tutorial009b_py39
    from docs_src.custom_response.tutorial009b_py39 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009b_py39.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 505 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py

    from unittest.mock import patch
    
    import pytest
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="module",
        params=[
            pytest.param("tutorial009_py39"),
            pytest.param("tutorial009_py310", marks=needs_py310),
            pytest.param("tutorial009b_py39"),
        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.python_types.{request.param}")
        return mod
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 805 bytes
    - Viewed (0)
  5. docs/ru/docs/python-types.md

    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial009_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+ альтернативный вариант
    
    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial009b_py39.py!}
    ```
    
    ////
    
    #### Использовать `Union` или `Optional` { #using-union-or-optional }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  6. docs/ru/docs/advanced/custom-response.md

    Файловые ответы будут содержать соответствующие заголовки `Content-Length`, `Last-Modified` и `ETag`.
    
    {* ../../docs_src/custom_response/tutorial009_py39.py hl[2,10] *}
    
    Вы также можете использовать параметр `response_class`:
    
    {* ../../docs_src/custom_response/tutorial009b_py39.py hl[2,8,10] *}
    
    В этом случае вы можете возвращать путь к файлу напрямую из своей функции-обработчика пути.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  7. docs/de/docs/python-types.md

    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial009_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+ Alternative
    
    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial009b_py39.py!}
    ```
    
    ////
    
    #### `Union` oder `Optional` verwenden? { #using-union-or-optional }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.9K bytes
    - Viewed (1)
  8. docs/en/docs/advanced/custom-response.md

    File responses will include appropriate `Content-Length`, `Last-Modified` and `ETag` headers.
    
    {* ../../docs_src/custom_response/tutorial009_py39.py hl[2,10] *}
    
    You can also use the `response_class` parameter:
    
    {* ../../docs_src/custom_response/tutorial009b_py39.py hl[2,8,10] *}
    
    In this case, you can return the file path directly from your *path operation* function.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/custom-response.md

    Datei-Responses enthalten die entsprechenden `Content-Length`-, `Last-Modified`- und `ETag`-Header.
    
    {* ../../docs_src/custom_response/tutorial009_py39.py hl[2,10] *}
    
    Sie können auch den Parameter `response_class` verwenden:
    
    {* ../../docs_src/custom_response/tutorial009b_py39.py hl[2,8,10] *}
    
    In diesem Fall können Sie den Dateipfad direkt von Ihrer *Pfadoperation*-Funktion zurückgeben.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. docs/pt/docs/advanced/custom-response.md

    {* ../../docs_src/custom_response/tutorial009_py39.py hl[2,10] *}
    
    Você também pode usar o parâmetro `response_class`:
    
    {* ../../docs_src/custom_response/tutorial009b_py39.py hl[2,8,10] *}
    
    Nesse caso, você pode retornar o caminho do arquivo diretamente da sua *função de operação de rota*.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.8K bytes
    - Viewed (0)
Back to top