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 Client::with_url and Client::with_url_and_key #10

Merged
merged 1 commit into from
Dec 28, 2021
Merged

Add Client::with_url and Client::with_url_and_key #10

merged 1 commit into from
Dec 28, 2021

Conversation

y21
Copy link
Contributor

@y21 y21 commented Dec 28, 2021

Currently there is no way to set the base URL of a Client. This is needed to interact with a self-hosted instance of piston. This PR adds Client::with_url and Client::with_url_and_key that allow setting a custom base url.

@Jonxslays
Copy link
Owner

Thanks a lot for the contribution :) Looks good.

@Jonxslays Jonxslays merged commit 621c1f2 into Jonxslays:master Dec 28, 2021
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.

2 participants