Method
request
(
method string,
path string,
requestBody interface{},
responseBody interface{},
)
Source from the content-addressed store, hash-verified
| 176 | } |
| 177 | |
| 178 | func (c *client) request( |
| 179 | method string, |
| 180 | path string, |
| 181 | requestBody interface{}, |
| 182 | responseBody interface{}, |
| 183 | ) (int, error) { |
| 184 | logger := c.logger.WithLabel("path", path) |
| 185 | u := c.config.URL + path |
| 186 | return c.requestURLWithLogger(method, u, requestBody, responseBody, logger) |
| 187 | } |
| 188 | |
| 189 | func (c *client) createRequest(method string, path string, requestBody interface{}, logger log.Logger) ( |
| 190 | *http.Request, |
Tested by
no test coverage detected