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

Method handle

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

Source from the content-addressed store, hash-verified

286
287 @override
288 def handle(self, request: APIRequest, call_next: CallNext) -> Any:
289 response = call_next(request)
290 self.responses.append(response)
291 return response
292
293 @override
294 async def handle_async(self, request: APIRequest, call_next: AsyncCallNext) -> Any:

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected