#NEWLINE# def add_response_request( self , response , request ) : #NEWLINE# #INDENT# deferred = defer . Deferred ( ) #NEWLINE# self . queue . append ( ( response , request , deferred ) ) #NEWLINE# if isinstance ( response , Response ) : #NEWLINE# #INDENT# self . active_size += max ( len ( response . body ) , self . MIN_RESPONSE_SIZE ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . active_size += self . MIN_RESPONSE_SIZE #NEWLINE# #UNINDENT# return request