NewRequest returns a new HTTP request. If the payload is not nil it will be encoded as JSON.
(ctx context.Context, method, uri string, payload interface{}, options ...management.RequestOption)
| 11 | // NewRequest returns a new HTTP request. |
| 12 | // If the payload is not nil it will be encoded as JSON. |
| 13 | NewRequest(ctx context.Context, method, uri string, payload interface{}, options ...management.RequestOption) (*http.Request, error) |
| 14 | |
| 15 | // Do triggers an HTTP request and returns an HTTP response, |
| 16 | // handling any context cancellations or timeouts. |
no outgoing calls