parameters: (self, method, path='', body=None, headers=None)
docstring: Internal request method
docstring_summary: Internal request method
docstring_tokens: Internal request method
function: def _request(self, method, path='', body=None, headers=None):
          """Internal request method"""
          self.response = None
          
          if headers is None:
              headers = copy.copy(self.headers)
          else:
              new_headers = copy.copy(self.headers)
              new_headers.update(headers)
              headers = new_headers
          
          if self._url.scheme == 'http':
              self._connection = httplib.HTTPConnection(self._url[1])
          elif self._url.scheme == 'https':
              self._connection = httplib.HTTPSConnection(self._url[1])
          else:
              raise Exception, 'Unsupported scheme'
          
          self._connection.request(method, path, body, headers)
              
          self.response = self._connection.getresponse()
          
          self.response.body = self.response.read()
          
          # Try to parse and get an etree
          try:
              self._get_response_tree()
          except:
              pass
function_tokens: def _request ( self , method , path = '' , body = None , headers = None ) : self . response = None if headers is None : headers = copy . copy ( self . headers ) else : new_headers = copy . copy ( self . headers ) new_headers . update ( headers ) headers = new_headers if self . _url . scheme == 'http' : self . _connection = httplib . HTTPConnection ( self . _url [ 1 ] ) elif self . _url . scheme == 'https' : self . _connection = httplib . HTTPSConnection ( self . _url [ 1 ] ) else : raise Exception , 'Unsupported scheme' self . _connection . request ( method , path , body , headers ) self . response = self . _connection . getresponse ( ) self . response . body = self . response . read ( ) # Try to parse and get an etree try : self . _get_response_tree ( ) except : pass