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