Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 180 for body (0.56 sec)

  1. docs/em/docs/tutorial/handling-errors.md

    }
    ```
    
    👆 🔜 📨 📨 💬 👆 👈 💽 ❌ ⚗ 📨 💪:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
            "body",
            "size"
          ],
          "msg": "value is not a valid integer",
          "type": "type_error.integer"
        }
      ],
      "body": {
        "title": "towel",
        "size": "XL"
      }
    }
    ```
    
    #### FastAPI `HTTPException` 🆚 💃 `HTTPException`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  2. docs/zh-hant/docs/index.md

        - 如果驗證失敗,將會返回清楚有用的錯誤訊息。
    - 查看 `GET` 請求中是否有命名為 `q` 的查詢參數 (例如 `http://127.0.0.1:8000/items/foo?q=somequery`)。
        - 因為 `q` 參數被宣告為 `= None`,所以是選填的。
        - 如果沒有宣告 `None`,則此參數將會是必填 (例如 `PUT` 範例的請求 body)。
    - 對於 `PUT` 的請求 `/items/{item_id}`,將會讀取 body 為 JSON:
        - 驗證是否有必填屬性 `name` 且型別是 `str`。
        - 驗證是否有必填屬性 `price` 且型別是 `float`。
        - 驗證是否有選填屬性 `is_offer` 且型別是 `bool`。
        - 以上驗證都適用於多層次巢狀 JSON 物件。
    - 自動轉換 JSON 格式。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

      }
    
      @Test fun nullDefaultProxySelector() {
        server!!.enqueue(MockResponse(body = "abc"))
        ProxySelector.setDefault(null)
        val client = clientTestRule.newClient()
        val request = Request(server!!.url("/"))
        val response = client.newCall(request).execute()
        assertThat(response.body.string()).isEqualTo("abc")
      }
    
      @Test fun sslSocketFactorySetAsSocketFactory() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  4. docs/en/docs/release-notes.md

    * 🌐 Add German translation for `docs/de/docs/tutorial/body-fields.md`. PR [#10310](https://github.com/tiangolo/fastapi/pull/10310) by [@nilslindemann](https://github.com/nilslindemann).
    * 🌐 Add German translation for `docs/de/docs/tutorial/body.md`. PR [#10295](https://github.com/tiangolo/fastapi/pull/10295) by [@nilslindemann](https://github.com/nilslindemann).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  5. common-protos/k8s.io/api/admission/v1/generated.proto

      // This field IS NOT consulted in any way if "Allowed" is "true".
      // +optional
      optional k8s.io.apimachinery.pkg.apis.meta.v1.Status status = 3;
    
      // The patch body. Currently we only support "JSONPatch" which implements RFC 6902.
      // +optional
      optional bytes patch = 4;
    
      // The type of Patch. Currently we only allow "JSONPatch".
      // +optional
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/handling-errors.md

    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
            "body",
            "size"
          ],
          "msg": "value is not a valid integer",
          "type": "type_error.integer"
        }
      ],
      "body": {
        "title": "towel",
        "size": "XL"
      }
    }
    ```
    
    #### `HTTPException` в FastAPI или в Starlette
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/index.md

        ```Python hl_lines="3"
        {!> ../../../docs_src/dependencies/tutorial001.py!}
        ```
    
    ### Declare the dependency, in the "dependant"
    
    The same way you use `Body`, `Query`, etc. with your *path operation function* parameters, use `Depends` with a new parameter:
    
    === "Python 3.10+"
    
        ```Python hl_lines="13  18"
        {!> ../../../docs_src/dependencies/tutorial001_an_py310.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  8. docs/pl/docs/index.md

    * Alternatywna dokumentacja również pokaże zaktualizowane parametry i treść żądania (body):
    
    ![ReDoc](https://fastapi.tiangolo.com/img/index/index-06-redoc-02.png)
    
    ### Podsumowanie
    
    Podsumowując, musiałeś zadeklarować typy parametrów, treści żądania (body) itp. tylko **raz**, i są one dostępne jako parametry funkcji.
    
    Robisz to tak samo jak ze standardowymi typami w Pythonie.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/handling-errors.md

    ```
    
    受信したボディを含むデータが無効であることを示すレスポンスが表示されます:
    
    ```JSON hl_lines="12 13 14 15"
    {
      "detail": [
        {
          "loc": [
            "body",
            "size"
          ],
          "msg": "value is not a valid integer",
          "type": "type_error.integer"
        }
      ],
      "body": {
        "title": "towel",
        "size": "XL"
      }
    }
    ```
    
    #### FastAPIの`HTTPException`とStarletteの`HTTPException`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/request-files.md

    ## 🗄 `File`
    
    🗄 `File` & `UploadFile` ⚪️➡️ `fastapi`:
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_files/tutorial001.py!}
    ```
    
    ## 🔬 `File` 🔢
    
    ✍ 📁 🔢 🎏 🌌 👆 🔜 `Body` ⚖️ `Form`:
    
    ```Python hl_lines="7"
    {!../../../docs_src/request_files/tutorial001.py!}
    ```
    
    !!! info
        `File` 🎓 👈 😖 🔗 ⚪️➡️ `Form`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.6K bytes
    - Viewed (0)
Back to top