mcclient: add SetHttpTransportProxyFunc()

This commit is contained in:
Yousong Zhou
2020-03-22 19:36:45 +08:00
parent 0ff96ace44
commit 583f770fcd
+4
View File
@@ -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
}