You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: