-
Notifications
You must be signed in to change notification settings - Fork 683
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
Feature request: the ability to indicate content-type when the server does not provide it #92
Comments
It seems nice addition to resty. Thank you, let me think of |
@ccp-ccollins I have added this feature. Available on branch Please give it try and share your feedback, then I will merge it to master. You can expect this feature in |
@ccp-ccollins whenever you get a chance, try and share your feedback. Thanks. |
@ccp-ccollins Did you get a chance try it out? |
Sometimes I am forced to get data from a server that has a consistent API (for example, it always returns JSON) but does not set the Content-Type header. In these cases, it appears that resty does not automatically parse the response automatically with SetResponse().
In cases where I know for sure what data should be expected, I'd like to be able to indicate that, rather than reading the body and parsing manually. For example, it could be something like this:
The text was updated successfully, but these errors were encountered: