Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    路径装饰器依赖项也可以使用普通的依赖项*函数*。
    
    ### 依赖项的需求项
    
    路径装饰器依赖项可以声明请求的需求项(比如响应头)或其他子依赖项:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### 触发异常
    
    路径装饰器依赖项与正常的依赖项一样,可以 `raise` 异常:
    
    ```Python hl_lines="8  13"
    {!../../../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

    👆 💪 ⚙️ 🎏 🔗 *🔢* 👆 ⚙️ 🛎.
    
    ### 🔗 📄
    
    👫 💪 📣 📨 📄 (💖 🎚) ⚖️ 🎏 🎧-🔗:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### 🤚 ⚠
    
    👫 🔗 💪 `raise` ⚠, 🎏 😐 🔗:
    
    ```Python hl_lines="8  13"
    {!../../../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

        !!! tip "팁"
            가능하다면 `Annotated`가 달린 버전을 권장합니다.
    
        ```Python hl_lines="6  11"
        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    ### 오류 발생시키기
    
    다음 의존성은 기존 의존성과 동일하게 예외를 `raise`를 일으킬 수 있습니다:
    
    === "Python 3.9+"
    
        ```Python hl_lines="10  15"
        {!> ../../../docs_src/dependencies/tutorial006_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9  14"
    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/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="6  11"
        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    ### Raise exceptions
    
    These dependencies can `raise` exceptions, the same as normal dependencies:
    
    === "Python 3.9+"
    
        ```Python hl_lines="10  15"
        {!> ../../../docs_src/dependencies/tutorial006_an_py39.py!}
        ```
    
    === "Python 3.8+"
    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)
  5. docs/ja/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ### 依存関係の要件
    
    これらはリクエストの要件(ヘッダのようなもの)やその他のサブ依存関係を宣言することができます:
    
    ```Python hl_lines="6 11"
    {!../../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### 例外の発生
    
    これらの依存関係は通常の依存関係と同じように、例外を`raise`発生させることができます:
    
    ```Python hl_lines="8 13"
    {!../../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ### 戻り値
    
    そして、値を返すことも返さないこともできますが、値は使われません。
    
    つまり、すでにどこかで使っている通常の依存関係(値を返すもの)を再利用することができ、値は使われなくても依存関係は実行されます:
    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)
  6. docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        ```Python hl_lines="6  11"
        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    ### Вызов исключений
    
    Зависимости из dependencies могут вызывать исключения с помощью `raise`, как и обычные зависимости:
    
    === "Python 3.9+"
    
        ```Python hl_lines="10  15"
        {!> ../../../docs_src/dependencies/tutorial006_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9  14"
    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)
  7. docs/de/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        ```Python hl_lines="6  11"
        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    ### Exceptions auslösen
    
    Die Abhängigkeiten können Exceptions `raise`n, genau wie normale Abhängigkeiten:
    
    === "Python 3.9+"
    
        ```Python hl_lines="10  15"
        {!> ../../../docs_src/dependencies/tutorial006_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
    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)
Back to top