Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ handler
Method
handler
tests/test_middleware.py:503–505 ·
view source on GitHub ↗
(req: APIRequest)
Source
from the content-addressed store, hash-verified
501
seen: list[APIRequest] = []
502
503
def
handler(req: APIRequest) -> Any:
504
seen.append(req)
505
return
sentinel
506
507
assert Middleware().handle(request, handler) is sentinel
508
assert seen == [request]
Callers
nothing calls this directly
Calls
1
append
Method · 0.45
Tested by
no test coverage detected