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

feat: change HttpResponse<R> to HttpResponse<R, E> #909

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

alecthomas
Copy link
Collaborator

This allows for seperate HTTP response structures for valid responses and errors, codifying the best practice of having a distinct error response structure.

Fixed a bug where sdk.Option was not using encoding.Marshal().

Refactored ingress response construction such that headers and payload are entirely handled by a single function, ResponseForVerb.

This allows for seperate HTTP response structures for valid responses
and errors, codifying the best practice of having a distinct error
response structure.

Fixed a bug where sdk.Option was not using encoding.Marshal().

Refactored ingress response construction such that headers and payload
are entirely handled by a single function, ResponseForVerb.
@alecthomas alecthomas force-pushed the aat/http-response-error branch from fcf8ff7 to 54a017c Compare February 9, 2024 06:22
@alecthomas alecthomas merged commit c57a6fe into main Feb 9, 2024
17 checks passed
@alecthomas alecthomas deleted the aat/http-response-error branch February 9, 2024 06: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.

1 participant