MCPcopy Index your code
hub / github.com/syncthing/syncthing / PutJSON

Method PutJSON

cmd/syncthing/cli/client.go:153–155  ·  view source on GitHub ↗
(url string, o interface{})

Source from the content-addressed store, hash-verified

151}
152
153func (c *apiClient) PutJSON(url string, o interface{}) (*http.Response, error) {
154 return c.RequestJSON(url, "PUT", o)
155}
156
157var errNotFound = errors.New("invalid endpoint or API call")
158

Callers

nothing calls this directly

Calls 1

RequestJSONMethod · 0.95

Tested by

no test coverage detected