parameters: (self)
return_statement: return requested_with.lower() == 'xmlhttprequest'
docstring: 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).
docstring_summary: 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).
docstring_tokens: 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 ) .
function: 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'
function_tokens: def is_xhr ( self ) : requested_with = self . environ . get ( 'HTTP_X_REQUESTED_WITH' , '' ) return requested_with . lower ( ) == 'xmlhttprequest'