#NEWLINE# def _forward_response( self , response ) : #NEWLINE# #INDENT# content = self . father . response_content #NEWLINE# if ( ( not response . drop_connection ) and ( not response . reset_connection ) ) : #NEWLINE# #INDENT# if ( not self . _finished ) : #NEWLINE# #INDENT# ProxyClient . handleResponsePart ( self , content ) #NEWLINE# ProxyClient . handleResponseEnd ( self ) #NEWLINE# #UNINDENT# log . msg ( ( 'Response forwarded: ' + str ( response ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if response . drop_connection : #NEWLINE# #INDENT# ProxyClient . handleResponsePart ( self , content ) #NEWLINE# ProxyClient . handleResponseEnd ( self ) #NEWLINE# response . transport . loseConnection ( ) #NEWLINE# log . msg ( 'Connection dropped' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# response . transport . abortConnection ( ) #NEWLINE# log . msg ( 'Connection reset' )