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

Method inner

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

Source from the content-addressed store, hash-verified

902 return call_next(request.copy(headers={**request.headers, "User-Agent": "outer"}))
903
904 def inner(request: APIRequest, call_next: CallNext) -> Any:
905 return call_next(request.copy(headers={**request.headers, "user-agent": "inner"}))
906
907 client = make_sync_client(middleware=[outer, inner])
908

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected