#NEWLINE# def _copy( self ) : #NEWLINE# #INDENT# 'Creates a deep copy of this request.' #NEWLINE# copied_uri = Uri ( self . uri . scheme , self . uri . host , self . uri . port , self . uri . path , self . uri . query . copy ( ) ) #NEWLINE# new_request = HttpRequest ( uri = copied_uri , method = self . method , headers = self . headers . copy ( ) ) #NEWLINE# new_request . _body_parts = self . _body_parts [ : ] #NEWLINE# return new_request