We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Amazing library;
i wonder how to get Header information?
xhr.POST(Alloy.CFG.api_url +'/authenticate', login_data, onSuccessCallback, onErrorCallback,opts);
function onSuccessCallback(e){ Ti.API.info('AUTH DATA:', e); }
Only brings the body. What about the Headers?
The text was updated successfully, but these errors were encountered:
Adding:
result.headers = xhr.getResponseHeaders();
https://github.com/raulriera/XHR/blob/master/xhr.js#L276
Solves it for uncached calls. But it needs to play nice with the cache writing process.
var result = {}; result.result = "cache"; result.status = 304; result.headers = "cache"; // not modified result.data = cache;
onSuccess(result);
Sorry, something went wrong.
No branches or pull requests
Amazing library;
i wonder how to get Header information?
Only brings the body.
What about the Headers?
The text was updated successfully, but these errors were encountered: