reqwest
reqwest copied to clipboard
Add support for default options
First of all I love the module! Using the commonjs structure rocks. I'm currently working on a platform that needs some specific browser tweaks, I have to call a custom xhr.destroy() function after a request. Unfortunately this does not seem possible with the current success callback, as it does not provide the used xhr object. Or am I missing something?
Maybe it is an idea to support a default setup solution just like jquery with "ajaxSetup" http://api.jquery.com/jQuery.ajaxSetup/
Thanks!
+1 Current implementation needs improvements @ded https://github.com/ded/reqwest/blob/b4171a05896219eac65285144ecfa5df4ca305b9/src/reqwest.js#L601
+1
+1