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

Extract HttpClient to share related API behavior #47

Merged
merged 6 commits into from
Dec 30, 2024

Conversation

mthadley
Copy link
Contributor

@mthadley mthadley commented Nov 4, 2024

We had a small collection of util/ functions that interacted with the API and therefore all needed things like clientId and/or baseUrl to be passed in.

This extracts a new HttpClient class that encompasses those behaviors. This class is not part of the public API and is an internal implementation detail only.

cmatheson
cmatheson previously approved these changes Dec 27, 2024
Copy link
Collaborator

@cmatheson cmatheson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh dang @mthadley , sorry for letting this languish. i assume this will need a rebase but i like this.

@mthadley mthadley requested a review from cmatheson December 28, 2024 00:00
@mthadley
Copy link
Contributor Author

@cmatheson Thanks for approving, though I think it could use one more look over since there were some merge conflicts I needed to resolve after merging in main. Just want to make sure I incorporated some of your other upstream changes correctly.

@mthadley mthadley dismissed cmatheson’s stale review December 28, 2024 00:02

Just need one more look-over in case I messed something up after solving merge conflicts with main.

@mthadley mthadley merged commit 22adb78 into main Dec 30, 2024
1 check passed
@mthadley mthadley deleted the extract-http-client-for-api-calls branch December 30, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants