- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for setBody (0.1 sec)
-
internal/rest/client.go
case *bytes.Buffer: req.ContentLength = int64(v.Len()) buf := v.Bytes() req.GetBody = func() (io.ReadCloser, error) { r := bytes.NewReader(buf) return io.NopCloser(r), nil } case *bytes.Reader: req.ContentLength = int64(v.Len()) snapshot := *v req.GetBody = func() (io.ReadCloser, error) { r := snapshot return io.NopCloser(&r), nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 26 12:55:01 UTC 2024 - 14.7K bytes - Viewed (0) -
src/archive/zip/struct.go
mode = msdosModeToFileMode(h.ExternalAttrs) } if len(h.Name) > 0 && h.Name[len(h.Name)-1] == '/' { mode |= fs.ModeDir } return mode } // SetMode changes the permission and mode bits for the [FileHeader]. func (h *FileHeader) SetMode(mode fs.FileMode) { h.CreatorVersion = h.CreatorVersion&0xff | creatorUnix<<8 h.ExternalAttrs = fileModeToUnixMode(mode) << 16
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue May 28 21:41:09 UTC 2024 - 12.1K bytes - Viewed (0) -
docs/pl/docs/features.md
* Automatyczna dokumentacja modelu danych za pomocą <a href="https://json-schema.org/" class="external-link"...
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 10.9K bytes - Viewed (0) -
docs/pl/docs/tutorial/first-steps.md
* `@app.put()` * `@app.delete()` Oraz tych bardziej egzotycznych: * `@app.options()` * `@app.head()` * `@app.patch()` * `@app.trace()` /// tip Możesz dowolnie używać każdej operacji (metody HTTP). **FastAPI** nie narzuca żadnego konkretnego znaczenia. Informacje tutaj są przedstawione jako wskazówka, a nie wymóg.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 16:51:30 UTC 2024 - 9.6K bytes - Viewed (0) -
src/archive/zip/writer_test.go
} } } func testCreate(t *testing.T, w *Writer, wt *WriteTest) { header := &FileHeader{ Name: wt.Name, Method: wt.Method, } if wt.Mode != 0 { header.SetMode(wt.Mode) } f, err := w.CreateHeader(header) if err != nil { t.Fatal(err) } _, err = f.Write(wt.Data) if err != nil { t.Fatal(err) } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 14.4K bytes - Viewed (0)