Skip to content

Commit

Permalink
paypal adds http.Client option (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
sscsdl authored Nov 9, 2024
1 parent 7485422 commit 01dfc8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions paypal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ func WithProxyUrl(proxyUrlProd, proxyUrlSandbox string) Option {
}
}

// WithHttpClient 设置自定义的xhttp.Client
func WithHttpClient(client *xhttp.Client) Option {
return func(c *Client) {
c.hc = client
}
}

// SetBodySize 设置http response body size(MB)
func (c *Client) SetBodySize(sizeMB int) {
if sizeMB > 0 {
Expand Down

0 comments on commit 01dfc8e

Please sign in to comment.