(httpClient *http.Client)
| 27 | var linkRE = regexp.MustCompile(`<([^>]+)>;\s*rel="([^"]+)"`) |
| 28 | |
| 29 | func NewClientFromHTTP(httpClient *http.Client) *Client { |
| 30 | client := &Client{http: httpClient} |
| 31 | return client |
| 32 | } |
| 33 | |
| 34 | type Client struct { |
| 35 | http *http.Client |
no outgoing calls