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

Method outer

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

Source from the content-addressed store, hash-verified

1750 respx_mock.post("/v1/messages").mock(return_value=httpx2.Response(200, json=message_body()))
1751
1752 async def outer(request: APIRequest, call_next: AsyncCallNext) -> Any:
1753 return await call_next(request.copy(headers={**request.headers, "User-Agent": "outer"}))
1754
1755 async def inner(request: APIRequest, call_next: AsyncCallNext) -> Any:
1756 return await call_next(request.copy(headers={**request.headers, "user-agent": "inner"}))

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected