MCPcopy
hub / github.com/AlistGo/alist / post_form

Method post_form

drivers/terabox/util.go:124–131  ·  view source on GitHub ↗
(pathname string, params map[string]string, data map[string]string, resp interface{})

Source from the content-addressed store, hash-verified

122}
123
124func (d *Terabox) post_form(pathname string, params map[string]string, data map[string]string, resp interface{}) ([]byte, error) {
125 return d.request(pathname, http.MethodPost, func(req *resty.Request) {
126 if params != nil {
127 req.SetQueryParams(params)
128 }
129 req.SetFormData(data)
130 }, resp)
131}
132
133func (d *Terabox) getFiles(dir string) ([]File, error) {
134 page := 1

Callers 2

MakeDirMethod · 0.95
PutMethod · 0.95

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected