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

Method handle

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

Source from the content-addressed store, hash-verified

305
306 @override
307 def handle(self, request: APIRequest, call_next: CallNext) -> Any:
308 response = call_next(request)
309 self.parsed.append(response.parse())
310 return response
311
312 @override
313 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> Any:

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected