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

Function handler

tests/lib/test_scoped_client.py:128–130  ·  view source on GitHub ↗
(req: httpx2.Request)

Source from the content-addressed store, hash-verified

126 captured: list[httpx2.Request] = []
127
128 async def handler(req: httpx2.Request) -> httpx2.Response:
129 captured.append(req)
130 return httpx2.Response(200, json={"id": "agent_test"})
131
132 transport = httpx2.MockTransport(handler)
133 http_client = httpx2.AsyncClient(transport=transport)

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected