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

Method inner

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

Source from the content-addressed store, hash-verified

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"}))
1757
1758 client = make_async_client(middleware=[outer, inner])
1759

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected