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

Method Post

cmd/syncthing/cli/client.go:149–151  ·  view source on GitHub ↗
(url, body string)

Source from the content-addressed store, hash-verified

147}
148
149func (c *apiClient) Post(url, body string) (*http.Response, error) {
150 return c.RequestString(url, "POST", body)
151}
152
153func (c *apiClient) PutJSON(url string, o interface{}) (*http.Response, error) {
154 return c.RequestJSON(url, "PUT", o)

Callers

nothing calls this directly

Calls 1

RequestStringMethod · 0.95

Tested by

no test coverage detected