def headers(self): for header in DecoratedHTTPResponse.headers(self): yield header yield HTTPResponseCookies.generate_header(StandardSessionProvider._cookie_name, self._session_id)
def __init__(self, inner, session_id): DecoratedHTTPResponse.__init__(self, inner) self._session_id = session_id