mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
mcclient: add SetHttpTransportProxyFunc()
This commit is contained in:
@@ -79,6 +79,10 @@ func (this *Client) HttpClient() *http.Client {
|
||||
return this.httpconn
|
||||
}
|
||||
|
||||
func (this *Client) SetHttpTransportProxyFunc(proxyFunc httputils.TransportProxyFunc) {
|
||||
httputils.SetClientProxyFunc(this.httpconn, proxyFunc)
|
||||
}
|
||||
|
||||
func (this *Client) SetDebug(debug bool) {
|
||||
this.debug = debug
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user