ded/reqwest — pull request #59 by rvagg (2012-01-05 11:46:21+00:00)
Title: added .compat() for jQuery mode, fixes #4

Man, time to get #4 closed...

* added `reqwest.compat(o, cb)` that does simple option remapping for jQuery/Zepto mode, not a wrapper as such, more just an alias with rewriting. I didn't think there was good justification for going with the whole `reqwest.compat('jquery')(o, cb)` thing. Let me know if you still think otherwise.
* added `contentType` option as a shortcut for `headers: { 'Content-Type': 'blah/blah' }`.
* extended the test server so we can inspect request headers and request method in the tests.
* updated documentation.

And there's this snippet in the docs for people wanting to use it as the default mode: `$.ajax.compat && $.ender({ ajax: $.ajax.compat })`.