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:529–531 ·
view source on GitHub ↗
(req: APIRequest)
Source
from the content-addressed store, hash-verified
527
seen: list[APIRequest] = []
528
529
def
handler(req: APIRequest) -> Any:
530
seen.append(req)
531
return
sentinel
532
533
assert Middleware().handle(request, handler) is sentinel
534
assert seen == [request]
Callers
nothing calls this directly
Calls
1
append
Method · 0.45
Tested by
no test coverage detected