(request: httpx2.Request)
| 3476 | self, async_client: AsyncAnthropic, error: Exception, message: str |
| 3477 | ) -> None: |
| 3478 | def handler(request: httpx2.Request) -> httpx2.Response: |
| 3479 | if request.url.host == "example.com": |
| 3480 | return httpx2.Response(307, headers={"Location": "https://other.example.com/foo"}) |
| 3481 | raise error |
| 3482 | |
| 3483 | with pytest.raises(APIConnectionError) as exc_info: |
| 3484 | await async_client.with_options( |
nothing calls this directly
no outgoing calls
no test coverage detected