def get_file_response(self, path, request):
        try:
            if not isinstance(path, basestring):
                path = '/'.join(path)
            full_path = find_file(self.search_paths, path)
            if full_path is None:
                raise NotFound(is_breaking=False)
        except (__HOLE__, IOError, OSError):
            raise Forbidden(is_breaking=False)
        bfr = build_file_response
        resp = bfr(full_path,
                   cache_timeout=self.cache_timeout,
                   cached_modify_time=request.if_modified_since,
                   mimetype=None,
                   default_text_mime=self.default_text_mime,
                   default_binary_mime=self.default_binary_mime,
                   file_wrapper=request.environ.get('wsgi.file_wrapper',
                                                    FileWrapper))
        return resp
dataset/ETHPy150Open mahmoud/clastic/clastic/static.py/StaticApplication.get_file_response