(request: httpx2.Request)
| 1673 | self, client: Anthropic, error: Exception, message: str |
| 1674 | ) -> None: |
| 1675 | def handler(request: httpx2.Request) -> httpx2.Response: |
| 1676 | if request.url.host == "example.com": |
| 1677 | return httpx2.Response(307, headers={"Location": "https://other.example.com/foo"}) |
| 1678 | raise error |
| 1679 | |
| 1680 | with pytest.raises(APIConnectionError) as exc_info: |
| 1681 | client.with_options( |
no outgoing calls
no test coverage detected