MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / PostFile

Method PostFile

cli/pkg/common/http.go:122–125  ·  view source on GitHub ↗
(reqUrl string,
	reqParams map[string]interface{}, files []UploadFile, headers map[string]string)

Source from the content-addressed store, hash-verified

120}
121
122func (target HttpClient) PostFile(reqUrl string,
123 reqParams map[string]interface{}, files []UploadFile, headers map[string]string) (string, error) {
124 return postRetry(target, reqUrl, reqParams, "multipart/form-data", files, headers)
125}
126
127func postRetry(target HttpClient, reqUrl string,
128 reqParams map[string]interface{}, contentType string, files []UploadFile, headers map[string]string) (string, error) {

Callers

nothing calls this directly

Calls 1

postRetryFunction · 0.85

Tested by

no test coverage detected