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