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

Method send_twice

tests/test_open_telemetry.py:3549–3551  ·  view source on GitHub ↗
(request: Any, call_next: Callable[[Any], Any])

Source from the content-addressed store, hash-verified

3547 route = respx_mock.get("/v1/messages/batches").mock(return_value=httpx2.Response(200, json=EMPTY_PAGE))
3548
3549 def send_twice(request: Any, call_next: Callable[[Any], Any]) -> Any:
3550 call_next(request.copy(params={"limit": 1})).http_response.close()
3551 return call_next(request.copy(params={"limit": 2}))
3552
3553 async def async_send_twice(request: Any, call_next: Callable[[Any], Any]) -> Any:
3554 await (await call_next(request.copy(params={"limit": 1}))).http_response.aclose()

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected