Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for body (0.23 sec)

  1. docs/ja/docs/tutorial/dependencies/index.md

    ```Python hl_lines="3"
    {!../../../docs_src/dependencies/tutorial001.py!}
    ```
    
    ### "dependant"での依存関係の宣言
    
    *path operation関数*のパラメータに`Body`や`Query`などを使用するのと同じように、新しいパラメータに`Depends`を使用することができます:
    
    ```Python hl_lines="13  18"
    {!../../../docs_src/dependencies/tutorial001.py!}
    ```
    
    関数のパラメータに`Depends`を使用するのは`Body`や`Query`などと同じですが、`Depends`の動作は少し異なります。
    
    `Depends`は1つのパラメータしか与えられません。
    
    このパラメータは関数のようなものである必要があります。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 16:08:16 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/dependencies/index.md

    ### 导入 `Depends`
    
    ```Python hl_lines="3"
    {!../../../docs_src/dependencies/tutorial001.py!}
    ```
    
    ### 声明依赖项
    
    与在*路径操作函数*参数中使用 `Body`、`Query` 的方式相同,声明依赖项需要使用 `Depends` 和一个新的参数:
    
    ```Python hl_lines="15  20"
    {!../../../docs_src/dependencies/tutorial001.py!}
    ```
    
    虽然,在路径操作函数的参数中使用 `Depends` 的方式与 `Body`、`Query` 相同,但 `Depends` 的工作方式略有不同。
    
    这里只能传给 Depends 一个参数。
    
    且该参数必须是可调用对象,比如函数。
    
    该函数接收的参数和*路径操作函数*的参数一样。
    
    !!! tip "提示"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 7K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/dependencies/index.md

        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/dependencies/tutorial001_py310.py!}
        ```
    
    ### 📣 🔗, "⚓️"
    
    🎏 🌌 👆 ⚙️ `Body`, `Query`, ♒️. ⏮️ 👆 *➡ 🛠️ 🔢* 🔢, ⚙️ `Depends` ⏮️ 🆕 🔢:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="15  20"
        {!> ../../../docs_src/dependencies/tutorial001.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 6.7K bytes
    - Viewed (0)
Back to top