Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for BODY (0.42 sec)

  1. cmd/storage-rest-client.go

    	defer xioutil.SafeClose(resp)
    	body, err := req.MarshalMsg(nil)
    	if err != nil {
    		return err
    	}
    	respBody, err := client.call(ctx, storageRESTMethodReadMultiple, nil, bytes.NewReader(body), int64(len(body)))
    	if err != nil {
    		return err
    	}
    	defer xhttp.DrainBody(respBody)
    
    	pr, pw := io.Pipe()
    	go func() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  2. cmd/utils.go

    // it is used to ignore custom encoding charset in S3 XML body.
    func nopCharsetConverter(label string, input io.Reader) (io.Reader, error) {
    	return input, nil
    }
    
    // xmlDecoder provide decoded value in xml.
    func xmlDecoder(body io.Reader, v interface{}, size int64) error {
    	var lbody io.Reader
    	if size > 0 {
    		lbody = io.LimitReader(body, size)
    	} else {
    		lbody = body
    	}
    	d := xml.NewDecoder(lbody)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	body, err := json.Marshal(gdesc)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	writeSuccessResponseJSON(w, body)
    }
    
    // ListGroups - GET /minio/admin/v3/groups
    func (a adminAPIHandlers) ListGroups(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  4. docs/es/docs/index.md

    ![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png)
    
    ## Mejora al ejemplo
    
    Ahora modifica el archivo `main.py` para recibir un <abbr title="cuerpo del mensaje HTTP">body</abbr> del `PUT` request.
    
    Declara el body usando las declaraciones de tipo estándares de Python gracias a Pydantic.
    
    ```Python hl_lines="2  7-10  23-25"
    from fastapi import FastAPI
    from pydantic import BaseModel
    from typing import Union
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19K bytes
    - Viewed (0)
  5. README.md

    ![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png)
    
    ## Example upgrade
    
    Now modify the file `main.py` to receive a body from a `PUT` request.
    
    Declare the body using standard Python types, thanks to Pydantic.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  6. .github/workflows/check-bad-merge.yml

                `;
                github.rest.issues.createComment({
                  issue_number: context.issue.number,
                  owner: context.repo.owner,
                  repo: context.repo.repo,
                  body: output
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu May 02 09:13:16 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  7. docs/hu/docs/index.md

    ![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png)
    
    ## Példa frissítése
    
    Módosítsuk a `main.py` fájlt, hogy `PUT` kérések esetén tudjon body-t fogadni.
    
    Deklaráld a body-t standard Python típusokkal, a Pydantic-nak köszönhetően.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 20.2K bytes
    - Viewed (0)
  8. docs/vi/docs/index.md

    ![ReDoc](https://fastapi.tiangolo.com/img/index/index-02-redoc-simple.png)
    
    ## Nâng cấp ví dụ
    
    Bây giờ sửa tệp tin `main.py` để nhận body từ một request `PUT`.
    
    Định nghĩa của body sử dụng kiểu dữ liệu chuẩn của Python, cảm ơn Pydantic.
    
    ```Python hl_lines="4  9-12  25-27"
    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top