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

Method send_twice

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

Source from the content-addressed store, hash-verified

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