#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# 'Returns a rendition of the full HTTP message, including headers.\n\n        When the content is an iterator, the actual content is replaced with the\n        output of str(iterator) (to avoid exhausting the iterator).\n        ' #NEWLINE# if content . _is_str_iter : #NEWLINE# #INDENT# content = '' . join ( self . get_content ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# content = str ( self . content ) #NEWLINE# #UNINDENT# return ( ( '\n' . join ( [ ( '%s: %s' % ( key , value ) ) for ( key , value ) in self . headers . headeritems ( ) ] ) + '\n\n' ) + content )