]> git.ipfire.org Git - thirdparty/httpx.git/commit
Support Response(text=...), Response(html=...), Response(json=...) (#1297)
authorTom Christie <tom@tomchristie.com>
Mon, 21 Sep 2020 10:19:19 +0000 (11:19 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Sep 2020 10:19:19 +0000 (11:19 +0100)
commitf3c29416f12bc580b18f94538abfbc41ac06cce5
treed4853928a8b09ea46c69a2dc3e6673b267bb545e
parent8ee08afe96113de42472a932770002b351c37f66
Support Response(text=...), Response(html=...), Response(json=...) (#1297)

* Refactor content_streams internally

* Tidy up multipart

* Use ByteStream annotation internally

* Support Response(text=...), Response(html=...), Response(json=...)

* Add tests for Response(text=..., html=..., json=...)
httpx/_content.py
httpx/_models.py
tests/client/test_auth.py
tests/client/test_cookies.py
tests/client/test_headers.py
tests/client/test_queryparams.py
tests/client/test_redirects.py
tests/models/test_responses.py