MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / __call__

Method __call__

apps/base/dependencies.py:99–103  ·  view source on GitHub ↗
(self, request: Request)

Source from the content-addressed store, hash-verified

97 }
98
99 def __call__(self, request: Request) -> str:
100 ip = get_client_ip(request)
101 if not self.check_ip(ip):
102 raise HTTPException(status_code=423, detail="请求次数过多,请稍后再试")
103 return ip

Callers

nothing calls this directly

Calls 2

check_ipMethod · 0.95
get_client_ipFunction · 0.85

Tested by

no test coverage detected