Skip to content

api: Centralize interpreting HTTP response in one place #96

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

Merged
merged 15 commits into from
May 19, 2023

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented May 19, 2023

(Stacked atop #93.)

This helps set us up for #37: we're going to add significant new logic for interpreting the HTTP response from an API call, in order to throw appropriate exceptions, and in order to do that we'll want just one place for that logic to have to go.

As a bonus, this also simplifies the code, with a net negative diffstat, and makes the core API layer more testable.

@chrisbobbe chrisbobbe merged commit 99c8d10 into zulip:main May 19, 2023
@chrisbobbe
Copy link
Collaborator

Thanks, LGTM! Merged.

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