Skip to content

0.18.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 11:16
· 10 commits to main since this release
0.18.0
838b95c

What's Changed

  • feat: forward every httpx2 client option to the owned client by @lesnik512 in #148

Behaviour change

AsyncClient/Client now raise ValueError when max_response_body_bytes is set and the client follows redirects. This applies both to follow_redirects=True and to a caller-provided httpx2_client built with follow_redirects=True, which was accepted before. httpx2 reads intermediate redirect bodies without the cap, so the cap did not protect that path. Either drop follow_redirects or drop the cap.

Full Changelog: 0.17.2...0.18.0