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

Method RequestString

cmd/syncthing/cli/client.go:133–135  ·  view source on GitHub ↗
(url, method, data string)

Source from the content-addressed store, hash-verified

131}
132
133func (c *apiClient) RequestString(url, method, data string) (*http.Response, error) {
134 return c.Request(url, method, bytes.NewBufferString(data))
135}
136
137func (c *apiClient) RequestJSON(url, method string, o interface{}) (*http.Response, error) {
138 data, err := json.Marshal(o)

Callers 2

GetMethod · 0.95
PostMethod · 0.95

Calls 1

RequestMethod · 0.95

Tested by

no test coverage detected