tbergeron/ThinAir — pull request #4 by Ralt (2012-05-09 12:48:03+00:00)
Title: Added the isXHR helper method

This method is often used when you want to decide whether to send JSON datas (answering an AJAX call) or just plain HTML.

This method is in the same line as `isPost`, `isGet`, or even `isDefined`.

I hesitated to add a method where the correct headers are set (you must invalidate cache as [IE will bite you if you don't](http://greenash.net.au/thoughts/2006/03/an-ie-ajax-gotcha-page-caching/)). This should probably be done later when a better architecture for these headers is built.