getFor sends a GET request and attempts to unmarshal the response.
(url string, m proto.Message)
| 108 | |
| 109 | // getFor sends a GET request and attempts to unmarshal the response. |
| 110 | func (c *Client) getFor(url string, m proto.Message) (*http.Response, error) { |
| 111 | return c.getForWithContext(context.Background(), url, m) |
| 112 | } |
| 113 | |
| 114 | func (c *Client) getForWithContext(ctx context.Context, url string, m proto.Message) (*http.Response, error) { |
| 115 | req, err := http.NewRequestWithContext(ctx, "GET", url, nil) |
no test coverage detected