(request: Any, call_next: Callable[[Any], Any])
| 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() |