(proxy string)
| 46 | } |
| 47 | |
| 48 | func (b BasicClient) SetProxy(proxy string) { |
| 49 | if proxy == "" { |
| 50 | return |
| 51 | } |
| 52 | parse, err := url.Parse(proxy) |
| 53 | if err != nil { |
| 54 | return |
| 55 | } |
| 56 | |
| 57 | b.client.Transport = &http.Transport{ |
| 58 | Proxy: http.ProxyURL(parse), |
| 59 | } |
| 60 | } |
no outgoing calls
no test coverage detected