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

Method handle_request

tests/test_client.py:70–76  ·  view source on GitHub ↗
(
        self,
        request: httpx.Request,
    )

Source from the content-addressed store, hash-verified

68
69 @override
70 def handle_request(
71 self,
72 request: httpx.Request,
73 ) -> httpx.Response:
74 assert not inspect.iscoroutinefunction(self.handler), "handler must not be a coroutine function"
75 assert inspect.isfunction(self.handler), "handler must be a function"
76 return self.handler(request)
77
78 @override
79 async def handle_async_request(

Callers

nothing calls this directly

Calls 1

handlerMethod · 0.80

Tested by

no test coverage detected