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

Enumerate the response types #6

Open
CrowdHailer opened this issue Apr 22, 2020 · 0 comments
Open

Enumerate the response types #6

CrowdHailer opened this issue Apr 22, 2020 · 0 comments
Labels
question Further information is requested Suggestion PR's will be accepted but not on the Roadmap

Comments

@CrowdHailer
Copy link
Contributor

Somewhere we need to have the information on messages for response types, however it's extensible

  1. Define all the types
response(OK)
response(Custom(422, "Something"))

or have functions that return status + reason phrase

response(ok())
response(tuple(422, "Something)
@CrowdHailer CrowdHailer added question Further information is requested Suggestion PR's will be accepted but not on the Roadmap labels May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Suggestion PR's will be accepted but not on the Roadmap
Development

No branches or pull requests

1 participant