(path string, body io.Reader)
| 389 | } |
| 390 | |
| 391 | func (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 | |
| 400 | func (c *Client) PostJSON(path string, body io.Reader) (*Response, error) { |
| 401 | c.log.Debug("testcli: post json request %q", path) |