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

Method handle_async

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

Source from the content-addressed store, hash-verified

311
312 @override
313 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> Any:
314 response = await call_next(request)
315 self.parsed.append(await response.parse())
316 return response
317
318
319class AsyncCallableMiddleware:

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected