MCPcopy
hub / github.com/fastapi/fastapi / __call__

Method __call__

fastapi/security/api_key.py:230–232  ·  view source on GitHub ↗
(self, request: Request)

Source from the content-addressed store, hash-verified

228 )
229
230 async def __call__(self, request: Request) -> str | None:
231 api_key = request.headers.get(self.model.name)
232 return self.check_api_key(api_key)
233
234
235class APIKeyCookie(APIKeyBase):

Callers

nothing calls this directly

Calls 2

check_api_keyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected