Request performs a REST request and returns the response for the caller to consume. See RequestWithContext for the full semantics.
(hostname string, method string, p string, body io.Reader, opts ...RequestOption)
| 204 | // |
| 205 | // See RequestWithContext for the full semantics. |
| 206 | func (c Client) Request(hostname string, method string, p string, body io.Reader, opts ...RequestOption) (*http.Response, error) { |
| 207 | return c.RequestWithContext(context.Background(), hostname, method, p, body, opts...) |
| 208 | } |
| 209 | |
| 210 | // RequestWithContext performs a REST request and returns the response for the caller to consume, |
| 211 | // rather than decoding it into a receiver as REST does. It exists for call sites that need access |