Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Status and headers not given to then/success #6
The readme mentions that promises resolve with multiple arguments giving the status code and response headers in addition to data, but most promises library do not handle multiple arguments.
I added a spec to show it, but I think it requires an API change to work, thus I did not look at solutions yet.
Any advice there?
The simplest would be resolve the promise with the whole
Another one is to resolve with an array and recommend the usage of
Don't know if it's a good idea but maybe having a config option which changes the resolve type, like:
Backward compatibility is fine, and only users actually using headers/status will receive it.
I know that HTTP an angular response with the full response object