Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for catch (0.18 sec)

  1. docs/en/docs/reference/websockets.md

                - iter_json
                - send_text
                - send_bytes
                - send_json
                - close
    
    When a client disconnects, a `WebSocketDisconnect` exception is raised, you can catch it.
    
    You can import it directly form `fastapi`:
    
    ```python
    from fastapi import WebSocketDisconnect
    ```
    
    ::: fastapi.WebSocketDisconnect
    
    ## WebSockets - additional classes
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/first-steps.md

     <span style="background-color:#C4A000"><font color="#2E3436">╰─────────────────────────────────────────────────────╯</font></span>
    
    <font color="#4E9A06">INFO</font>:     Will watch for changes in these directories: [&apos;/home/user/code/awesomeapp&apos;]
    <font color="#4E9A06">INFO</font>:     Uvicorn running on <b>http://127.0.0.1:8000</b> (Press CTRL+C to quit)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/body-updates.md

    ```
    
    因为上述数据未包含已存储的属性 `"tax": 20.2`,新的输入模型会把 `"tax": 10.5` 作为默认值。
    
    因此,本次操作把 `tax` 的值「更新」为 `10.5`。
    
    ## 用 `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** 对此没有任何限制,可以**随意**互换使用这两种操作。
    
    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)
  4. docs/en/docs/deployment/versions.md

    Following the Semantic Versioning conventions, any version below `1.0.0` could potentially add breaking changes.
    
    FastAPI also follows the convention that any "PATCH" version change is for bug fixes and non-breaking changes.
    
    !!! tip
        The "PATCH" is the last number, for example, in `0.2.3`, the PATCH version is `3`.
    
    So, you should be able to pin to a version like:
    
    ```txt
    fastapi>=0.45.0,<0.46.0
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Nov 05 20:50:37 GMT 2020
    - 3.3K bytes
    - Viewed (0)
  5. docs/fr/docs/deployment/versions.md

    des changements non rétrocompatibles.
    
    FastAPI suit également la convention que tout changement de version "PATCH" est pour des corrections de bogues et
    des changements rétrocompatibles.
    
    !!! tip "Astuce"
        Le "PATCH" est le dernier chiffre, par exemple, dans `0.2.3`, la version PATCH est `3`.
    
    Donc, vous devriez être capable d'épingler une version comme suit :
    
    ```txt
    fastapi>=0.45.0,<0.46.0
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Oct 31 17:39:54 GMT 2022
    - 4K bytes
    - Viewed (0)
  6. docs/de/docs/reference/fastapi.md

                - openapi
                - websocket
                - include_router
                - get
                - put
                - post
                - delete
                - options
                - head
                - patch
                - trace
                - on_event
                - middleware
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 18 12:19:32 GMT 2024
    - 715 bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/path-params.md

    ```Python hl_lines="6  11"
    {!../../../docs_src/path_params/tutorial003.py!}
    ```
    
    Otherwise, the path for `/users/{user_id}` would match also for `/users/me`, "thinking" that it's receiving a parameter `user_id` with a value of `"me"`.
    
    Similarly, you cannot redefine a path operation:
    
    ```Python hl_lines="6  11"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/first-steps.md

    #### Операция (operation)
    
    "Операция" это один из "методов" HTTP.
    
    Таких, как:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ...и более экзотических:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    По протоколу HTTP можно обращаться к каждому пути, используя один (или несколько) из этих "методов".
    
    ---
    
    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)
  9. docs/de/docs/tutorial/first-steps.md

    „Operation“ bezieht sich hier auf eine der HTTP-„Methoden“.
    
    Eine von diesen:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ... und die etwas Exotischeren:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    Im HTTP-Protokoll können Sie mit jedem Pfad über eine (oder mehrere) dieser „Methoden“ kommunizieren.
    
    ---
    
    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)
  10. docs/em/docs/tutorial/first-steps.md

    #### 🛠️
    
    "🛠️" 📥 🔗 1️⃣ 🇺🇸🔍 "👩‍🔬".
    
    1️⃣:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ...&amp; 🌅 😍 🕐:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    🇺🇸🔍 🛠️, 👆 💪 🔗 🔠 ➡ ⚙️ 1️⃣ (⚖️ 🌅) 👫 "👩‍🔬".
    
    ---
    
    🕐❔ 🏗 🔗, 👆 🛎 ⚙️ 👫 🎯 🇺🇸🔍 👩‍🔬 🎭 🎯 🎯.
    
    🛎 👆 ⚙️:
    
    * `POST`: ✍ 💽.
    * `GET`: ✍ 💽.
    * `PUT`: ℹ 💽.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top