

def __call__(self, environ, start_response):
    '\n        A note about the zappa cookie: Only 1 cookie can be passed through API\n        Gateway. Hence all cookies are packed into a special cookie, the\n        zappa cookie. There are a number of problems with this:\n\n            * updates of single cookies, when there are multiple present results\n              in deletion of the ones that are not being updated.\n            * expiration of cookies. The client no longer knows when cookies\n              expires.\n\n        The first is solved by unpacking the zappa cookie on each request and\n        saving all incoming cookies. The response Set-Cookies are then used\n        to update the saved cookies, which are packed and set as the zappa\n        cookie.\n\n        The second is solved by filtering cookies on their expiration time,\n        only passing cookies that are still valid to the WSGI app.\n        '
    self.start_response = start_response
    parsed = parse_cookie(environ)
    if ('zappa' in parsed):
        self.decode_zappa_cookie(parsed['zappa'])
        self.filter_expired_cookies()
        environ['HTTP_COOKIE'] = start_response.cookie_environ_string()
    else:
        self.request_cookies = dict()
    response = self.application(environ, self.encode_response)
    if self.redirect_content:
        response = [self.redirect_content for item in response]
    return ClosingIterator(response)

dataset/ETHPy150Open Miserlou/Zappa/zappa/middleware.py ZappaWSGIMiddleware.__call__/VarMisuse@59/393 `self`->`start_response`