Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 386 for notes (0.15 sec)

  1. docs/fr/docs/tutorial/query-params-str-validations.md

    !!! note
        **FastAPI** saura que la valeur de `q` n'est pas requise grâce à la valeur par défaut `= None`.
    
        Le `Union` dans `Union[str, None]` permettra à votre éditeur de vous offrir un meilleur support et de détecter les erreurs.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/middleware.md

    * 它接收你的应用程序的每一个**请求**.
    * 然后它可以对这个**请求**做一些事情或者执行任何需要的代码.
    * 然后它将**请求**传递给应用程序的其他部分 (通过某种*路径操作*).
    * 然后它获取应用程序生产的**响应** (通过某种*路径操作*).
    * 它可以对该**响应**做些什么或者执行任何需要的代码.
    * 然后它返回这个 **响应**.
    
    !!! note "技术细节"
        如果你使用了 `yield` 关键字依赖, 依赖中的退出代码将在执行中间件*后*执行.
    
        如果有任何后台任务(稍后记录), 它们将在执行中间件*后*运行.
    
    ## 创建中间件
    
    要创建中间件你可以在函数的顶部使用装饰器 `@app.middleware("http")`.
    
    中间件参数接收如下参数:
    
    * `request`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 27 17:25:21 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/testing-websockets.md

    For this, you use the `TestClient` in a `with` statement, connecting to the WebSocket:
    
    ```Python hl_lines="27-31"
    {!../../../docs_src/app_testing/tutorial002.py!}
    ```
    
    !!! note
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 449 bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/body-updates.md

    ## 用 `PATCH` 进行部分更新
    
    <a href="https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Methods/PATCH" class="external-link" target="_blank">HTTP `PATCH`</a> 操作用于更新 *部分* 数据。
    
    即,只发送要更新的数据,其余数据保持不变。
    
    !!! note "笔记"
    
        `PATCH` 没有 `PUT` 知名,也怎么不常用。
    
        很多人甚至只用 `PUT` 实现部分更新。
    
        **FastAPI** 对此没有任何限制,可以**随意**互换使用这两种操作。
    
        但本指南也会分别介绍这两种操作各自的用途。
    
    ### 使用 Pydantic 的 `exclude_unset` 参数
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Waiting for application startup.
    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    !!! note "Технические детали"
        Команда `uvicorn main:app` обращается к:
    
        * `main`: файл `main.py` (модуль Python).
        * `app`: объект, созданный внутри файла `main.py` в строке `app = FastAPI()`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/middleware.md

    * 次に、アプリケーションの残りの部分に**リクエスト**を渡して (*path operation* によって) 処理させます。
    * 次に、ミドルウェアはアプリケーション (の *path operation*) によって生成された**レスポンス**を受け取ります。
    * その**レスポンス**に対して何かを実行したり、必要なコードを実行したりできます。
    * そして、**レスポンス**を返します。
    
    !!! note "技術詳細"
        `yield` を使った依存関係をもつ場合は、終了コードはミドルウェアの *後に* 実行されます。
    
        バックグラウンドタスク (後述) がある場合は、それらは全てのミドルウェアの *後に* 実行されます。
    
    ## ミドルウェアの作成
    
    ミドルウェアを作成するには、関数の上部でデコレータ `@app.middleware("http")` を使用します。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Waiting for application startup.
    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    !!! note "Hinweis"
        Der Befehl `uvicorn main:app` bezieht sich auf:
    
        * `main`: die Datei `main.py` (das sogenannte Python-„Modul“).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 12:16:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/static-files.md

    ## Use `StaticFiles`
    
    * Import `StaticFiles`.
    * "Mount" a `StaticFiles()` instance in a specific path.
    
    ```Python hl_lines="2  6"
    {!../../../docs_src/static_files/tutorial001.py!}
    ```
    
    !!! note "Technical Details"
        You could also use `from starlette.staticfiles import StaticFiles`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 19:56:09 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/query-params-str-validations.md

    {!../../../docs_src/query_params_str_validations/tutorial013.py!}
    ```
    
    !!! note "備考"
        この場合、FastAPIはリストの内容をチェックしないことを覚えておいてください。
    
        例えば`List[int]`はリストの内容が整数であるかどうかをチェックします(そして、文書化します)。しかし`list`だけではそうしません。
    
    ## より多くのメタデータを宣言する
    
    パラメータに関する情報をさらに追加することができます。
    
    その情報は、生成されたOpenAPIに含まれ、ドキュメントのユーザーインターフェースや外部のツールで使用されます。
    
    !!! note "備考"
        ツールによってOpenAPIのサポートのレベルが異なる可能性があることを覚えておいてください。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 10.5K bytes
    - Viewed (1)
  10. docs/em/docs/tutorial/path-params-numeric-validations.md

        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ &amp; 🔛"
    
        ```Python hl_lines="8"
        {!> ../../../docs_src/path_params_numeric_validations/tutorial001_py310.py!}
        ```
    
    !!! note
        ➡ 🔢 🕧 ✔ ⚫️ ✔️ 🍕 ➡.
    
        , 👆 🔜 📣 ⚫️ ⏮️ `...` ™ ⚫️ ✔.
    
        👐, 🚥 👆 📣 ⚫️ ⏮️ `None` ⚖️ ⚒ 🔢 💲, ⚫️ 🔜 🚫 📉 🕳, ⚫️ 🔜 🕧 🚚.
    
    ## ✔ 🔢 👆 💪
    
    ➡️ 💬 👈 👆 💚 📣 🔢 🔢 `q` ✔ `str`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.4K bytes
    - Viewed (0)
Back to top