-
Notifications
You must be signed in to change notification settings - Fork 134
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
JSON mode #227
Comments
A custom handler should do that. IOW, there is an option. |
AFAICS a custom handler will lose the raised status, e.g. when lacking a body |
This comment was marked as outdated.
This comment was marked as outdated.
#121 is also relevant for this |
@ip1981 @magthe In our current design (as of 0.21 let's say : Lines 113 to 176 in 66d60f7
In turn Line 104 in 66d60f7
|
I've just realized that currently our exception handling and server response generation are very coupled. E.g. if a user specifies a custom handler, should they have to re-implement the response generation part? |
In the default configuration Scotty returns always HTML. E.g.
There should be an option to run Scotty in a JSON mode where all default responses are JSON. E.g.:
The text was updated successfully, but these errors were encountered: