terraform/vendor/github.com/Ensighten/udnssdk/common.go

16 lines
335 B
Go
Raw Normal View History

2015-07-04 10:26:13 +02:00
package udnssdk
// GetResultByURI just requests a URI
func (c *Client) GetResultByURI(uri string) (*Response, error) {
req, err := c.NewRequest("GET", uri, nil)
if err != nil {
return nil, err
}
res, err := c.HTTPClient.Do(req)
if err != nil {
return &Response{Response: res}, err
}
return &Response{Response: res}, err
}