Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for internet (0.22 sec)

  1. docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        使用路径装饰器依赖项还可以避免开发新人误会代码中包含无用的未使用参数。
    
    !!! info "说明"
    
        本例中,使用的是自定义响应头 `X-Key` 和 `X-Token`。
    
        但实际开发中,尤其是在实现安全措施时,最好使用 FastAPI 内置的[安全工具](../security/index.md){.internal-link target=_blank}(详见下一章)。
    
    ## 依赖项错误和返回值
    
    路径装饰器依赖项也可以使用普通的依赖项*函数*。
    
    ### 依赖项的需求项
    
    路径装饰器依赖项可以声明请求的需求项(比如响应头)或其他子依赖项:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/dependencies/tutorial006.py!}
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        ⚫️ 💪 ℹ ❎ 😨 🆕 👩‍💻 👈 👀 ♻ 🔢 👆 📟 & 💪 💭 ⚫️ 🙃.
    
    !!! info
        👉 🖼 👥 ⚙️ 💭 🛃 🎚 `X-Key` & `X-Token`.
    
        ✋️ 🎰 💼, 🕐❔ 🛠️ 💂‍♂, 👆 🔜 🤚 🌖 💰 ⚪️➡️ ⚙️ 🛠️ [💂‍♂ 🚙 (⏭ 📃)](../security/index.md){.internal-link target=_blank}.
    
    ## 🔗 ❌ & 📨 💲
    
    👆 💪 ⚙️ 🎏 🔗 *🔢* 👆 ⚙️ 🛎.
    
    ### 🔗 📄
    
    👫 💪 📣 📨 📄 (💖 🎚) ⚖️ 🎏 🎧-🔗:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/dependencies/tutorial006.py!}
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        또한 코드에서 사용되지 않는 매개변수를 보고 불필요하다고 생각할 수 있는 새로운 개발자의 혼란을 방지하는데 도움이 될 수 있습니다.
    
    !!! info "정보"
        이 예시에서 `X-Key`와 `X-Token`이라는 커스텀 헤더를 만들어 사용했습니다.
    
        그러나 실제로 보안을 구현할 때는 통합된 [보안 유틸리티 (다음 챕터)](../security/index.md){.internal-link target=_blank}를 사용하는 것이 더 많은 이점을 얻을 수 있습니다.
    
    ## 의존성 오류와 값 반환하기
    
    평소에 사용하던대로 같은 의존성 *함수*를 사용할 수 있습니다.
    
    ### 의존성 요구사항
    
    (헤더같은) 요청 요구사항이나 하위-의존성을 선언할 수 있습니다:
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Feb 11 13:49:45 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        Но в реальных проектах, при внедрении системы безопасности, вы получите больше пользы используя интегрированные [средства защиты (следующая глава)](../security/index.md){.internal-link target=_blank}.
    
    ## Исключения в dependencies и возвращаемые значения
    
    Вы можете использовать те же *функции* зависимостей, что и обычно.
    
    ### Требования к зависимостям
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 06 15:43:55 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        Aber in realen Fällen würden Sie bei der Implementierung von Sicherheit mehr Vorteile durch die Verwendung der integrierten [Sicherheits-Werkzeuge (siehe nächstes Kapitel)](../security/index.md){.internal-link target=_blank} erzielen.
    
    ## Abhängigkeitsfehler und -Rückgabewerte
    
    Sie können dieselben Abhängigkeits-*Funktionen* verwenden, die Sie normalerweise verwenden.
    
    ### Abhängigkeitsanforderungen
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:09:16 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        But in real cases, when implementing security, you would get more benefits from using the integrated [Security utilities (the next chapter)](../security/index.md){.internal-link target=_blank}.
    
    ## Dependencies errors and return values
    
    You can use the same dependency *functions* you use normally.
    
    ### Dependency requirements
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  7. docs/ja/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ```Python hl_lines="9 14"
    {!../../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ## *path operations*のグループに対する依存関係
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 15 16:44:28 GMT 2024
    - 2.9K bytes
    - Viewed (0)
Back to top