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

Method outer

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

Source from the content-addressed store, hash-verified

899 respx_mock.post("/v1/messages").mock(return_value=httpx2.Response(200, json=message_body()))
900
901 def outer(request: APIRequest, call_next: CallNext) -> Any:
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"}))

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected