SetProxy set the proxy function.
(proxy func(*http.Request) (*urlpkg.URL, error))
| 1025 | |
| 1026 | // SetProxy set the proxy function. |
| 1027 | func (c *Client) SetProxy(proxy func(*http.Request) (*urlpkg.URL, error)) *Client { |
| 1028 | c.Transport.SetProxy(proxy) |
| 1029 | return c |
| 1030 | } |
| 1031 | |
| 1032 | // OnError set the error hook which will be executed if any error returned, |
| 1033 | // even if the occurs before request is sent (e.g. invalid URL). |
no outgoing calls