def _after_request(self, response):
        if getattr(_app_ctx_stack.top, self._csrf_name, None) is None:
            return response

        _view_func = getattr(_app_ctx_stack.top, '_view_func', False)
        if not (_view_func and self._should_use_token(_view_func)):
            return response

        csrf_token = getattr(_app_ctx_stack.top, self._csrf_name)
        if session.get(self._csrf_name) != csrf_token:
            session[self._csrf_name] = csrf_token
        response.set_cookie(self._csrf_name,
                            csrf_token,
                            max_age=self._csrf_timeout,
                            secure=self._csrf_secure,
                            httponly=self._csrf_httponly,
                            domain=self._csrf_domain)
        response.vary.add('Cookie')
        return response
Default constructor
dataset/ETHPy150Open maxcountryman/flask-seasurf/flask_seasurf.py/SeaSurf._after_request--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/pyherc/config/dsl/levelgeneratorfactory.py/LevelContext.__init__