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

Method Post

lib/discover/global.go:416–426  ·  view source on GitHub ↗
(ctx context.Context, url, ctype string, data io.Reader)

Source from the content-addressed store, hash-verified

414}
415
416func (c *idCheckingHTTPClient) Post(ctx context.Context, url, ctype string, data io.Reader) (*http.Response, error) {
417 resp, err := c.httpClient.Post(ctx, url, ctype, data)
418 if err != nil {
419 return nil, err
420 }
421 if err := c.check(resp); err != nil {
422 return nil, err
423 }
424
425 return resp, nil
426}
427
428type errorHolder struct {
429 err error

Callers

nothing calls this directly

Calls 2

checkMethod · 0.95
PostMethod · 0.65

Tested by

no test coverage detected