reqwest
reqwest copied to clipboard
browser asynchronous http requests
hello ``` reqwest({ //... async:0,//false success:function(retData){ console.log(retData); } //... },function(){}) ``` as u see,callback hasnot been invoked
headers{ "Authorization":"Basic " + btoa("ivan:123") } request header can`t find Authorization
Hi, there are some warnings about your code that you could improve: ``` Condition always true [./~/reqwest/reqwest.js:9,0] Dropping unreachable code [./~/reqwest/reqwest.js:10,0] ```
Hi, everything with jsonp works fine as long as there is no other status code than 200. When I get a 400, neither success nor fail is called. ``` reqwest({...
hi, can I have a simple example of making a GET call using http basic auth? Thanks a ton - M.M
This lib supports timeout but not documented anywhere. https://github.com/ded/reqwest/blob/master/src/reqwest.js#L261-L285
Please add support for `request.defaults` (like `$.ajaxSetup`) where we can set global configuration options (e.g. automatically logout and redirect to login if 401; similar to $http service in Angular).
getAllResponseHeaders is always "" How can I read the response headers?
``` script.type = 'text/javascript' script.src = url script.async = true if (typeof script.onreadystatechange !== 'undefined' && !isIE10) { // need this for IE due to out-of-order onreadystatechange(), binding script //...