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

Method handle

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

Source from the content-addressed store, hash-verified

232class Exploding(Middleware):
233 @override
234 def handle(self, request: APIRequest, call_next: CallNext) -> Any: # noqa: ARG002
235 raise Boom("middleware failure")
236
237 @override
238 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