MCPcopy Create free account
hub / github.com/imroc/req / SetFile

Function SetFile

request_wrapper.go:85–87  ·  view source on GitHub ↗

SetFile is a global wrapper methods which delegated to the default client, create a request and SetFile for request.

(paramName, filePath string)

Source from the content-addressed store, hash-verified

83// SetFile is a global wrapper methods which delegated
84// to the default client, create a request and SetFile for request.
85func SetFile(paramName, filePath string) *Request {
86 return defaultClient.R().SetFile(paramName, filePath)
87}
88
89// SetFileUpload is a global wrapper methods which delegated
90// to the default client, create a request and SetFileUpload for request.

Callers

nothing calls this directly

Calls 2

SetFileMethod · 0.80
RMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…