Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use a custom http client #11

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

kishiyama
Copy link
Contributor

Summary

Add the ability to use a custom http client.

Description

We use go-vcr (https://github.com/dnaeon/go-vcr) to record HTTP calls to FullContact and replay them in our unit tests. The go-vcr package requires us to use a custom HTTP Transport to hook in and record the calls and responses, but the fullcontact-go client does not currently allow us to set this.

To remedy this, we added a new WithHTTPClient function, similar to the existing WithCredentialsProvider/WithTimeout/WithHeaders, etc functions which allows us to use our own HTTP client.

@nathan-pr nathan-pr merged commit c97bce3 into fullcontact:master Jun 29, 2023
@kishiyama kishiyama deleted the custom-http-client branch October 25, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants