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

Method handle_async

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected