Skip to content

Commit 01dfc8e

Browse files
authored
paypal adds http.Client option (#427)
1 parent 7485422 commit 01dfc8e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

paypal/client.go

+7
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ func WithProxyUrl(proxyUrlProd, proxyUrlSandbox string) Option {
6464
}
6565
}
6666

67+
// WithHttpClient 设置自定义的xhttp.Client
68+
func WithHttpClient(client *xhttp.Client) Option {
69+
return func(c *Client) {
70+
c.hc = client
71+
}
72+
}
73+
6774
// SetBodySize 设置http response body size(MB)
6875
func (c *Client) SetBodySize(sizeMB int) {
6976
if sizeMB > 0 {

0 commit comments

Comments
 (0)