buildRequestWithoutBody builds an HTTP request without a body.
(method, url string)
| 92 | |
| 93 | // buildRequestWithoutBody builds an HTTP request without a body. |
| 94 | func (c *Client) buildRequestWithoutBody(method, url string) (*http.Request, error) { |
| 95 | return http.NewRequest(method, url, nil) |
| 96 | } |
| 97 | |
| 98 | // buildRequestWithBody builds an HTTP request with a body. |
| 99 | func (c *Client) buildRequestWithBody(method, url string, body interface{}) (*http.Request, error) { |