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

Method __call__

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

Source from the content-addressed store, hash-verified

140 )
141
142 async def __call__(self, request: Request) -> str | None:
143 api_key = request.query_params.get(self.model.name)
144 return self.check_api_key(api_key)
145
146
147class APIKeyHeader(APIKeyBase):

Callers

nothing calls this directly

Calls 2

check_api_keyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected