Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Leider (0.18 sec)

  1. tests/test_tutorial/test_dependencies/test_tutorial012_an.py

    
    def test_get_invalid_second_header_items():
        response = client.get(
            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Key header invalid"}
    
    
    def test_get_invalid_second_header_users():
        response = client.get(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/testing.md

    It has a `GET` operation that could return an error.
    
    It has a `POST` operation that could return several errors.
    
    Both *path operations* require an `X-Token` header.
    
    === "Python 3.10+"
    
        ```Python
        {!> ../../../docs_src/app_testing/app_b_an_py310/main.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/path-operation-advanced-configuration.md

    ```
    
    πŸ‘‰ πŸ–Ό, πŸ‘₯ 🚫 πŸ“£ πŸ™† Pydantic 🏷. πŸ‘, πŸ“¨ πŸ’ͺ 🚫 <abbr title="converted from some plain format, like bytes, into Python objects">🎻</abbr> 🎻, ⚫️ ✍ πŸ”— `bytes`, &amp; πŸ”’ `magic_data_reader()` πŸ”œ 🈚 🎻 ⚫️ 🌌.
    
    πŸ‘, πŸ‘₯ πŸ’ͺ πŸ“£ πŸ“ˆ πŸ”— πŸ“¨ πŸ’ͺ.
    
    ### πŸ›ƒ πŸ—„ 🎚 πŸ†Ž
    
    βš™οΈ πŸ‘‰ 🎏 🎱, πŸ‘† πŸ’ͺ βš™οΈ Pydantic 🏷 πŸ”¬ 🎻 πŸ”— πŸ‘ˆ ‴️ πŸ”Œ πŸ›ƒ πŸ—„ πŸ”— πŸ“„ *➑ πŸ› οΈ*.
    
    &amp; πŸ‘† πŸ’ͺ πŸ‘‰ πŸš₯ πŸ’½ πŸ†Ž πŸ“¨ 🚫 🎻.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  4. fastapi/__init__.py

    from .param_functions import Cookie as Cookie
    from .param_functions import Depends as Depends
    from .param_functions import File as File
    from .param_functions import Form as Form
    from .param_functions import Header as Header
    from .param_functions import Path as Path
    from .param_functions import Query as Query
    from .param_functions import Security as Security
    from .requests import Request as Request
    from .responses import Response as Response
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:50:18 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/websockets.md

    And all of them will use the same WebSocket connection.
    
    ## Using `Depends` and others
    
    In WebSocket endpoints you can import from `fastapi` and use:
    
    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    They work the same way as for other FastAPI endpoints/*path operations*:
    
    === "Python 3.10+"
    
        ```Python hl_lines="68-69  82"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  6. docs/en/mkdocs.yml

        - tutorial/body-fields.md
        - tutorial/body-nested-models.md
        - tutorial/schema-extra-example.md
        - tutorial/extra-data-types.md
        - tutorial/cookie-params.md
        - tutorial/header-params.md
        - tutorial/response-model.md
        - tutorial/extra-models.md
        - tutorial/response-status-code.md
        - tutorial/request-forms.md
        - tutorial/request-files.md
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial012_an_py39.py

        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    @needs_py39
    def test_get_invalid_second_header_items(client: TestClient):
        response = client.get(
            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Key header invalid"}
    
    
    @needs_py39
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_dependencies/test_tutorial006_an_py39.py

            }
        )
    
    
    @needs_py39
    def test_get_invalid_one_header(client: TestClient):
        response = client.get("/items/", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    @needs_py39
    def test_get_invalid_second_header(client: TestClient):
        response = client.get(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. fastapi/security/api_key.py

            return api_key
    
    
    class APIKeyHeader(APIKeyBase):
        """
        API key authentication using a header.
    
        This defines the name of the header that should be provided in the request with
        the API key and integrates that into the OpenAPI documentation. It extracts
        the key value sent in the header automatically and provides it as the dependency
        result. But it doesn't define how to send that key to the client.
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 23 22:29:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  10. docs/pt/docs/help-fastapi.md

    Conversas no chat nΓ£o sΓ£o tΓ£o fΓ‘ceis de serem encontrados quanto no GitHub, entΓ£o questΓ΅es e respostas podem se perder dentro da conversa. E apenas as que estΓ£o nas questΓ΅es do GitHub contam para vocΓͺ se tornar um [Expert em FastAPI](fastapi-people.md#especialistas){.internal-link target=_blank}, entΓ£o vocΓͺ receberΓ‘ mais atenção nas questΓ΅es do GitHub.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top