Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 177 for tutorial001_01_py310 (0.07 sec)

  1. tests/test_tutorial/test_dependencies/test_tutorial001_tutorial001_02.py

    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial001_an_py39"),
            pytest.param("tutorial001_an_py310", marks=needs_py310),
            pytest.param("tutorial001_02_an_py39"),
            pytest.param("tutorial001_02_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/header-param-models.md

    Объявите нужные **header-параметры** в **Pydantic-модели** и затем аннотируйте параметр как `Header`:
    
    {* ../../docs_src/header_param_models/tutorial001_an_py310.py hl[9:14,18] *}
    
    **FastAPI** **извлечёт** данные для **каждого поля** из **заголовков** запроса и выдаст заданную вами Pydantic-модель.
    
    ## Проверьте документацию { #check-the-docs }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/additional-status-codes.md

    To achieve that, import `JSONResponse`, and return your content there directly, setting the `status_code` that you want:
    
    {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *}
    
    /// warning
    
    When you return a `Response` directly, like in the example above, it will be returned directly.
    
    It won't be serialized with a model, etc.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2K bytes
    - Viewed (0)
  4. docs/ru/docs/advanced/testing-dependencies.md

    Тогда **FastAPI** будет вызывать это переопределение вместо исходной зависимости.
    
    {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *}
    
    /// tip | Совет
    
    Вы можете задать переопределение для зависимости, используемой в любом месте вашего приложения **FastAPI**.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:37:11 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. docs/es/docs/how-to/custom-request-and-route.md

    Si no hay `gzip` en el header, no intentará descomprimir el cuerpo.
    
    De esa manera, la misma clase de ruta puede manejar requests comprimidos con gzip o no comprimidos.
    
    {* ../../docs_src/custom_request_and_route/tutorial001_an_py310.py hl[9:16] *}
    
    ### Crear una clase personalizada `GzipRoute` { #create-a-custom-gziproute-class }
    
    A continuación, creamos una subclase personalizada de `fastapi.routing.APIRoute` que hará uso de `GzipRequest`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 5K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/header-param-models.md

    Declare os **parâmetros de cabeçalho** que você precisa em um **modelo do Pydantic**, e então declare o parâmetro como `Header`:
    
    {* ../../docs_src/header_param_models/tutorial001_an_py310.py hl[9:14,18] *}
    
    O **FastAPI** irá **extrair** os dados de **cada campo** a partir dos **cabeçalhos** da requisição e te retornará o modelo do Pydantic que você definiu.
    
    ## Checando a documentação { #check-the-docs }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/header-param-models.md

    Declara los **parámetros de header** que necesitas en un **modelo Pydantic**, y luego declara el parámetro como `Header`:
    
    {* ../../docs_src/header_param_models/tutorial001_an_py310.py hl[9:14,18] *}
    
    **FastAPI** **extraerá** los datos para **cada campo** de los **headers** en el request y te dará el modelo Pydantic que definiste.
    
    ## Revisa la Documentación { #check-the-docs }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/query-param-models.md

    这将允许你在**多个地方**去**复用模型**,并且一次性为所有参数声明验证和元数据。😎
    
    /// note
    
    FastAPI 从 `0.115.0` 版本开始支持这个特性。🤓
    
    ///
    
    ## 使用 Pydantic 模型的查询参数
    
    在一个 **Pydantic 模型**中声明你需要的**查询参数**,然后将参数声明为 `Query`:
    
    {* ../../docs_src/query_param_models/tutorial001_an_py310.py hl[9:13,17] *}
    
    **FastAPI** 将会从请求的**查询参数**中**提取**出**每个字段**的数据,并将其提供给你定义的 Pydantic 模型。
    
    ## 查看文档
    
    你可以在 `/docs` 页面的 UI 中查看查询参数:
    
    <div class="screenshot">
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Nov 26 22:06:31 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_query_param_models/test_tutorial001.py

    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial001_an_py39"),
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.query_param_models.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_header_param_models/test_tutorial001.py

    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
            pytest.param("tutorial001_an_py39"),
            pytest.param("tutorial001_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.header_param_models.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.3K bytes
    - Viewed (0)
Back to top