For the `ajax` calls return the Response object
Problem
Right now we don't have any information as how the request went (status code) as we are only returning the parsed body of the response.
Proposed solution
Return the whole Response object.
Notes
- This would be a breaking change.
- We will have to parse the response but this will give as more flexibility.
I get your point and I agree that sometimes will be better to return the Response object. To avoid a breaking change, maybe we can keep the current behaviour and introduce a new flag or a custom response handler to return the whole object? I'd like to keep the current behaviour by default, as it's more aligned with Ralix "shorcuts" philosophy. At the end, you can still use raw fetch if necessary.
@markets yes we could have an option like parseResponse. I would say that by default is true so it's not a breaking changes but we can check the response in some cases