(self)
return self.header.get('X-Requested-With') == 'XMLHttpRequest'
True if the request was generated using XMLHttpRequest
True if the request was generated using XMLHttpRequest
True if the request was generated using XMLHttpRequest
def is_ajax(self):
        ''' True if the request was generated using XMLHttpRequest '''
        #TODO: write tests
        return self.header.get('X-Requested-With') == 'XMLHttpRequest'
def is_ajax ( self ) : #TODO: write tests return self . header . get ( 'X-Requested-With' ) == 'XMLHttpRequest'