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

Method handle_async

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

Source from the content-addressed store, hash-verified

285
286 @override
287 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> Any:
288 response = await call_next(request)
289 self.parsed.append(await response.parse())
290 return response
291
292
293class AsyncCallableMiddleware:

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected