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

+ Allow building client with custom reqwest::ClientBuilder #17

Merged
merged 1 commit into from Nov 20, 2023

Conversation

JamesGuthrie
Copy link
Contributor

I would like to be able to configure the underlying Reqwest instance, which is not possible in the current setup.

This PR adds the new_client_with_reqwest function to allow passing in a reqwest::ClientBuilder instance which has been customised.

@jeremychone
Copy link
Owner

@JamesGuthrie Ho, this PR is clean and nicely done. Let me think more if no downside, but looks very good.

@JamesGuthrie
Copy link
Contributor Author

@jeremychone Thanks! The only reservation I have is that it might make sense to use a builder instead of multiple different functions.

@jeremychone jeremychone merged commit 9dbccb5 into jeremychone:main Nov 20, 2023
@jeremychone
Copy link
Owner

@JamesGuthrie Merged it. Since this library revolves around Reqwest and Reqwest has its own builder, I think it's fine.

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.

None yet

2 participants