(self)
return requested_with.lower() == 'xmlhttprequest'
True if the request was triggered by a XMLHttpRequest. This only
            works with JavaScript libraries that support the `X-Requested-With`
            header (most of the popular libraries do).
True if the request was triggered by a XMLHttpRequest. This only
            works with JavaScript libraries that support the `X-Requested-With`
            header (most of the popular libraries do).
True if the request was triggered by a XMLHttpRequest . This only works with JavaScript libraries that support the X - Requested - With header ( most of the popular libraries do ) .
def is_xhr(self):
        ''' True if the request was triggered by a XMLHttpRequest. This only
            works with JavaScript libraries that support the `X-Requested-With`
            header (most of the popular libraries do). '''
        requested_with = self.environ.get('HTTP_X_REQUESTED_WITH','')
        return requested_with.lower() == 'xmlhttprequest'
def is_xhr ( self ) : requested_with = self . environ . get ( 'HTTP_X_REQUESTED_WITH' , '' ) return requested_with . lower ( ) == 'xmlhttprequest'