parameters: (self)
docstring: Send any iterable data, then close self and the iterable
  
          Subclasses intended for use in asynchronous servers will
          want to redefine this method, such that it sets up callbacks
          in the event loop to iterate over the data, and to call
          'self.close()' once the response is finished.
docstring_summary: Send any iterable data, then close self and the iterable
docstring_tokens: Send any iterable data then close self and the iterable
function: def finish_response(self):
          """Send any iterable data, then close self and the iterable
  
          Subclasses intended for use in asynchronous servers will
          want to redefine this method, such that it sets up callbacks
          in the event loop to iterate over the data, and to call
          'self.close()' once the response is finished.
          """
          if not self.result_is_file() or not self.sendfile():
              for data in self.result:
                  self.write(data)
              self.finish_content()
          self.close()
function_tokens: def finish_response ( self ) : if not self . result_is_file ( ) or not self . sendfile ( ) : for data in self . result : self . write ( data ) self . finish_content ( ) self . close ( )