MCPcopy
hub / github.com/livebud/bud / Post

Method Post

internal/testcli/testcli.go:391–398  ·  view source on GitHub ↗
(path string, body io.Reader)

Source from the content-addressed store, hash-verified

389}
390
391func (c *Client) Post(path string, body io.Reader) (*Response, error) {
392 c.log.Debug("testcli: post request %q", path)
393 req, err := c.PostRequest(path, body)
394 if err != nil {
395 return nil, err
396 }
397 return c.Do(req)
398}
399
400func (c *Client) PostJSON(path string, body io.Reader) (*Response, error) {
401 c.log.Debug("testcli: post json request %q", path)

Callers 2

TestNewControllerAllFunction · 0.45
TestNewControllerAllRootFunction · 0.45

Implementers 2

discardpackage/budhttp/discard.go
clientpackage/budhttp/client.go

Calls 3

PostRequestMethod · 0.95
DoMethod · 0.95
DebugMethod · 0.65

Tested by 2

TestNewControllerAllFunction · 0.36
TestNewControllerAllRootFunction · 0.36