Skip to content

Commit

Permalink
Merge branch 'greg/allow-setting-http-client'
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Apr 11, 2022
2 parents 6352556 + beae8b6 commit c3d83ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v5/pivotal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ func (c *Client) SetBaseURL(baseURL string) error {
return nil
}

// SetHTTPClient overrides the default HTTP Client, http.DefaultClient.
func (c *Client) SetHTTPClient(client *http.Client) {
c.client = client
}

// SetUserAgent overrides the defaultUserAgent in the default Client implementation.
func (c *Client) SetUserAgent(agent string) {
c.userAgent = agent
Expand Down

0 comments on commit c3d83ab

Please sign in to comment.