MCPcopy Create free account
hub / github.com/pallets/quart / open_session

Method open_session

src/quart/sessions.py:96–106  ·  view source on GitHub ↗

Open an existing session from the request or create one. Returns: The Session object or None if no session can be created, in which case the :attr:`null_session_class` is expected to be used.

(
        self, app: Quart, request: BaseRequestWebsocket
    )

Source from the content-addressed store, hash-verified

94 return save_each and session.permanent
95
96 async def open_session(
97 self, app: Quart, request: BaseRequestWebsocket
98 ) -> SessionMixin | None:
99 """Open an existing session from the request or create one.
100
101 Returns:
102 The Session object or None if no session can be created,
103 in which case the :attr:`null_session_class` is expected
104 to be used.
105 """
106 raise NotImplementedError()
107
108 async def save_session(
109 self,

Callers 1

session_transactionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected