MCPcopy Create free account
hub / github.com/dataease/SQLBot / get_request

Method get_request

backend/common/audit/schemas/request_context.py:15–22  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

13
14 @classmethod
15 def get_request(cls) -> Request:
16 try:
17 return cls._current_request.get()
18 except LookupError:
19 raise RuntimeError(
20 "No request context found. "
21 "Make sure RequestContextMiddleware is installed."
22 )
23
24 @classmethod
25 def reset(cls, token):

Callers 2

async_wrapperFunction · 0.45
sync_wrapperFunction · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected