Method
Post
(ctx context.Context, url, ctype string, data io.Reader)
Source from the content-addressed store, hash-verified
| 414 | } |
| 415 | |
| 416 | func (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 | |
| 428 | type errorHolder struct { |
| 429 | err error |
Callers
nothing calls this directly
Tested by
no test coverage detected