def close(self):
        if not self.closed:
            self.closed = True
            self.stage = 'on_end_request'
            self.hooks.run('on_end_request')
            self.stage = 'close'
Ensures that if a resource comes from a URL that it has been retrieved in its entirety.
dataset/ETHPy150Open clips/pattern/pattern/server/cherrypy/cherrypy/_cprequest.py/Request.close--crossover with--dataset/ETHPy150Open hydroshare/hydroshare2/ga_resources/drivers/__init__.py/Driver.ensure_local_file