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

Method Post

pkg/client/client.go:1156–1162  ·  view source on GitHub ↗

Post is like http://golang.org/pkg/net/http/#Client.Post but with implementation details like gated requests. The URL's host must match the client's configured server.

(ctx context.Context, url string, bodyType string, body io.Reader)

Source from the content-addressed store, hash-verified

1154// but with implementation details like gated requests. The
1155// URL's host must match the client's configured server.
1156func (c *Client) Post(ctx context.Context, url string, bodyType string, body io.Reader) error {
1157 resp, err := c.post(ctx, url, bodyType, body)
1158 if err != nil {
1159 return err
1160 }
1161 return resp.Body.Close()
1162}
1163
1164// Sign sends a request to the sign handler on server to sign the contents of r,
1165// and return them signed. It uses the same implementation details, such as gated

Callers

nothing calls this directly

Calls 2

postMethod · 0.95
CloseMethod · 0.65

Tested by

no test coverage detected