-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
doc: How to properly return different kinds of responses? #1375
Comments
@cykerway . isn't it clear from the docs here? https://falcon.readthedocs.io/en/stable/api/request_and_response.html#response. |
I can see the fields are defined, but the doc doesn't say how they conflict with one another and which has priority. The doc should mention which fields are mutually exclusive so you know you shouldn't set one field if another is set. Furthermore, it's not very clear what |
* docs(response): add an FAQ entry for response attributes Fixes GH-1375 * Fix body / data mismatch
The
Response
object has several fields that application authors can fill:While I understand they are designed for different types of responses, it's not obvious from documentation how they conflict with one another and which has priority. I think the doc better adds some examples show different kinds of usage.
The text was updated successfully, but these errors were encountered: