parameters: (self)
return_statement: return new_request
docstring: Creates a deep copy of this request.
docstring_summary: Creates a deep copy of this request.
docstring_tokens: Creates a deep copy of this request .
function: def _copy(self):
      """Creates a deep copy of this request."""
      copied_uri = Uri(self.uri.scheme, self.uri.host, self.uri.port,
                       self.uri.path, self.uri.query.copy())
      new_request = HttpRequest(uri=copied_uri, method=self.method,
                                headers=self.headers.copy())
      new_request._body_parts = self._body_parts[:]
      return new_request
function_tokens: def _copy ( self ) : copied_uri = Uri ( self . uri . scheme , self . uri . host , self . uri . port , self . uri . path , self . uri . query . copy ( ) ) new_request = HttpRequest ( uri = copied_uri , method = self . method , headers = self . headers . copy ( ) ) new_request . _body_parts = self . _body_parts [ : ] return new_request