httpx/tests/client
Takashi Kajinami f0e232fc94 Add option to keep the same method for 301/302 redirects
RFC hasn't been clear enough about the expected behavior for 301 and
302 response. While it's (unfortunately) common for browsers to switch
the original http method to GET when following redirects, some server
applications expects the "legacy" behavior which keeps the same method
over redirects.

Add new option to clients to select the behavior.

Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2026-02-26 23:32:14 +09:00
..
__init__.py Tweak test naming 2019-05-17 13:49:24 +01:00
test_async_client.py Use __future__.annotations (#3068) 2024-01-24 14:30:22 +00:00
test_auth.py Upgrade Python type checker mypy (#3654) 2025-09-04 08:48:49 -05:00
test_client.py Add support for zstd decoding (#3139) 2024-03-21 10:17:15 +00:00
test_cookies.py Deprecate per-request cookies (#1574) 2021-04-19 11:18:32 +01:00
test_event_hooks.py Add support for zstd decoding (#3139) 2024-03-21 10:17:15 +00:00
test_headers.py Move utility functions from _utils.py to _client.py (#3389) 2024-11-15 11:42:52 +00:00
test_properties.py Upgrade Python type checker mypy (#3654) 2025-09-04 08:48:49 -05:00
test_proxies.py add socks5h proxy support (#3178) 2024-10-29 14:10:33 +00:00
test_queryparams.py Upgrade Python type checker mypy (#3654) 2025-09-04 08:48:49 -05:00
test_redirects.py Add option to keep the same method for 301/302 redirects 2026-02-26 23:32:14 +09:00