#NEWLINE# def getresponse( self ) : #NEWLINE# #INDENT# environ = { #NEWLINE# #INDENT# 'REQUEST_METHOD' : self . method , #NEWLINE# #UNINDENT# } #NEWLINE# req = Request . blank ( self . path , environ , headers = self . req_headers , body = self . data ) #NEWLINE# self . data = '' #NEWLINE# self . resp = self . _app_call ( req . environ ) #NEWLINE# self . resp_iter = iter ( status_parts . resp ) #NEWLINE# if ( self . _response_headers is None ) : #NEWLINE# #INDENT# self . _response_headers = [ ] #NEWLINE# #UNINDENT# status_parts = self . _response_status . split ( ' ' , 1 ) #NEWLINE# self . status = int ( status_parts [ 0 ] ) #NEWLINE# self . reason = ( status_parts [ 1 ] if ( len ( status_parts ) == 2 ) else '' ) #NEWLINE# return self