'True if the request was triggered via a JavaScript XMLHttpRequest.
This only works with libraries that support the ``X-Requested-With``
header and set it to "XMLHttpRequest".  Libraries that do that are
prototype, jQuery and Mochikit and probably some more.
.. deprecated:: 0.13
``X-Requested-With`` is not standard and is unreliable.'

@property
def is_xhr(self):

    warn(DeprecationWarning('Request.is_xhr    is    deprecated.    Given    that    the    X-Requested-With    header    is    not    a    part    of    any    spec,    it    is    not    reliable'), stacklevel=2)
    return (self.environ.get('HTTP_X_REQUESTED_WITH', '').lower() == 'xmlhttprequest')
