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

Method handle_async

tests/test_middleware.py:238–239  ·  view source on GitHub ↗
(self, request: APIRequest, call_next: AsyncCallNext)

Source from the content-addressed store, hash-verified

236
237 @override
238 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> Any: # noqa: ARG002
239 raise Boom("middleware failure")
240
241
242class SyncOnlyMiddleware(Middleware):

Callers 1

Calls 1

BoomClass · 0.85

Tested by

no test coverage detected