Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for header_params (0.05 sec)

  1. docs/es/docs/tutorial/header-params.md

    Primero importa `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declarar parámetros de `Header` { #declare-header-parameters }
    
    Luego declara los parámetros de header usando la misma estructura que con `Path`, `Query` y `Cookie`.
    
    Puedes definir el valor por defecto así como toda la validación extra o los parámetros de anotaciones:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/header-params.md

    Primeiro importe `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declare parâmetros de `Header` { #declare-header-parameters }
    
    Então declare os paramêtros de cabeçalho usando a mesma estrutura que em `Path`, `Query` e `Cookie`.
    
    O primeiro valor é o valor padrão, você pode passar todas as validações adicionais ou parâmetros de anotação:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. fastapi/openapi/utils.py

        query_params = _get_flat_fields_from_params(flat_dependant.query_params)
        header_params = _get_flat_fields_from_params(flat_dependant.header_params)
        cookie_params = _get_flat_fields_from_params(flat_dependant.cookie_params)
        parameter_groups = [
            (ParamTypes.path, path_params),
            (ParamTypes.query, query_params),
            (ParamTypes.header, header_params),
            (ParamTypes.cookie, cookie_params),
        ]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/header-params.md

    Сперва импортируйте `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Объявление параметров `Header` { #declare-header-parameters }
    
    Затем объявите параметры заголовка, используя ту же структуру, что и с `Path`, `Query` и `Cookie`.
    
    Первое значение является значением по умолчанию, вы можете передать все дополнительные параметры валидации или аннотации:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. fastapi/dependencies/utils.py

        query_params = _get_flat_fields_from_params(flat_dependant.query_params)
        header_params = _get_flat_fields_from_params(flat_dependant.header_params)
        cookie_params = _get_flat_fields_from_params(flat_dependant.cookie_params)
        return path_params + query_params + header_params + cookie_params
    
    
    def _get_signature(call: Callable[..., Any]) -> inspect.Signature:
        if sys.version_info >= (3, 10):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  6. tests/test_tutorial/test_header_params/test_tutorial001.py

            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_params.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_header_params/test_tutorial002.py

            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.header_params.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_header_params/test_tutorial003.py

            pytest.param("tutorial003_an_py39"),
            pytest.param("tutorial003_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.header_params.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. fastapi/dependencies/models.py

            func = func.func
        return func
    
    
    @dataclass
    class Dependant:
        path_params: list[ModelField] = field(default_factory=list)
        query_params: list[ModelField] = field(default_factory=list)
        header_params: list[ModelField] = field(default_factory=list)
        cookie_params: list[ModelField] = field(default_factory=list)
        body_params: list[ModelField] = field(default_factory=list)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. docs/en/docs/release-notes.md

    * ✅ Simplify tests for path_operation_configurations. PR [#13180](https://github.com/fastapi/fastapi/pull/13180) by [@alejsdev](https://github.com/alejsdev).
    * ✅ Simplify tests for header_params. PR [#13179](https://github.com/fastapi/fastapi/pull/13179) by [@alejsdev](https://github.com/alejsdev).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top