MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / handle

Method handle

tests/test_middleware.py:233–234  ·  view source on GitHub ↗
(self, request: APIRequest, call_next: CallNext)

Source from the content-addressed store, hash-verified

231class Exploding(Middleware):
232 @override
233 def handle(self, request: APIRequest, call_next: CallNext) -> Any: # noqa: ARG002
234 raise Boom("middleware failure")
235
236 @override
237 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> Any: # noqa: ARG002

Callers 1

Calls 1

BoomClass · 0.85

Tested by

no test coverage detected