reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

Add support for default options

Open bartsidee opened this issue 12 years ago • 3 comments

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!

bartsidee avatar Feb 03 '12 11:02 bartsidee

+1 Current implementation needs improvements @ded https://github.com/ded/reqwest/blob/b4171a05896219eac65285144ecfa5df4ca305b9/src/reqwest.js#L601

tiye avatar Apr 07 '15 03:04 tiye

+1

xpepermint avatar Apr 25 '15 17:04 xpepermint

+1

aemonge avatar Oct 27 '15 15:10 aemonge