Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Staken (0.19 sec)

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

    !!! tip "提示"
    
        有些编辑器会检查代码中没使用过的函数参数,并显示错误提示。
    
        在*路径操作装饰器*中使用 `dependencies` 参数,可以确保在执行依赖项的同时,避免编辑器显示错误提示。
    
        使用路径装饰器依赖项还可以避免开发新人误会代码中包含无用的未使用参数。
    
    !!! info "说明"
    
        本例中,使用的是自定义响应头 `X-Key` 和 `X-Token`。
    
        但实际开发中,尤其是在实现安全措施时,最好使用 FastAPI 内置的[安全工具](../security/index.md){.internal-link target=_blank}(详见下一章)。
    
    ## 依赖项错误和返回值
    
    路径装饰器依赖项也可以使用普通的依赖项*函数*。
    
    ### 依赖项的需求项
    
    路径装饰器依赖项可以声明请求的需求项(比如响应头)或其他子依赖项:
    
    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

        ⚙️ 👉 `dependencies` *➡ 🛠️ 👨‍🎨* 👆 💪 ⚒ 💭 👫 🛠️ ⏪ ❎ 👨‍🎨/🏭 ❌.
    
        ⚫️ 💪 ℹ ❎ 😨 🆕 👩‍💻 👈 👀 ♻ 🔢 👆 📟 & 💪 💭 ⚫️ 🙃.
    
    !!! info
        👉 🖼 👥 ⚙️ 💭 🛃 🎚 `X-Key` & `X-Token`.
    
        ✋️ 🎰 💼, 🕐❔ 🛠️ 💂‍♂, 👆 🔜 🤚 🌖 💰 ⚪️➡️ ⚙️ 🛠️ [💂‍♂ 🚙 (⏭ 📃)](../security/index.md){.internal-link target=_blank}.
    
    ## 🔗 ❌ & 📨 💲
    
    👆 💪 ⚙️ 🎏 🔗 *🔢* 👆 ⚙️ 🛎.
    
    ### 🔗 📄
    
    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

        *경로 작동 데코레이터*에서 `dependencies`를 사용하면 편집기/도구 오류를 피하며 실행되도록 할 수 있습니다.
    
        또한 코드에서 사용되지 않는 매개변수를 보고 불필요하다고 생각할 수 있는 새로운 개발자의 혼란을 방지하는데 도움이 될 수 있습니다.
    
    !!! info "정보"
        이 예시에서 `X-Key`와 `X-Token`이라는 커스텀 헤더를 만들어 사용했습니다.
    
        그러나 실제로 보안을 구현할 때는 통합된 [보안 유틸리티 (다음 챕터)](../security/index.md){.internal-link target=_blank}를 사용하는 것이 더 많은 이점을 얻을 수 있습니다.
    
    ## 의존성 오류와 값 반환하기
    
    평소에 사용하던대로 같은 의존성 *함수*를 사용할 수 있습니다.
    
    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

    !!! Дополнительная информация
        В этом примере мы используем выдуманные пользовательские заголовки `X-Key` и `X-Token`.
    
        Но в реальных проектах, при внедрении системы безопасности, вы получите больше пользы используя интегрированные [средства защиты (следующая глава)](../security/index.md){.internal-link target=_blank}.
    
    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

    !!! info
        In diesem Beispiel verwenden wir zwei erfundene benutzerdefinierte Header `X-Key` und `X-Token`.
    
    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

        It might also help avoid confusion for new developers that see an unused parameter in your code and could think it's unnecessary.
    
    !!! info
        In this example we use invented custom headers `X-Key` and `X-Token`.
    
        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}.
    
    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)
Back to top