MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / __call__

Method __call__

api/app_analytics/middleware.py:18–24  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

16 self.get_response = get_response
17
18 def __call__(self, request): # type: ignore[no-untyped-def]
19 # for each API request, trigger a call to Google Analytics to track the request
20 track_request_googleanalytics_async(request)
21
22 response = self.get_response(request)
23
24 return response
25
26
27class APIUsageMiddleware:

Callers

nothing calls this directly

Tested by

no test coverage detected