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)
| 1154 | // but with implementation details like gated requests. The |
| 1155 | // URL's host must match the client's configured server. |
| 1156 | func (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 |