What's Changed
Fixes
- Replayed aiohttp responses now have
raw_headers, so code that reads them (e.g. httpx-aiohttp) works on replay (#970, #1034). Thanks @HostX0 - Replayed urllib3 responses have
release_conn(), for code that releases pooled responses (#816, #1054). Thanks @cristianchiriac pathlib.Pathand other path-like objects work for cassette paths andcassette_library_dir(#567, #920, #1064). Thanks @fredrikblaufilter_post_data_parametersmatches urlencoded parameter names, so e.g.api:keyalso filtersapi%3Akey(#686, #1066). Thanks @b84330808- The
bodymatcher no longer crashes on form-urlencoded and XML-RPC requests without a body (#913, #1032). Thanks @M001N - The response stream is closed when reading an httpx response fails while recording (#1068). Thanks @Claire-ovo
ignore_localhostalso ignores::1(#639). Thanks @dragonpaw for the report
New
- Replayed urllib3 responses have
json(), as urllib3 2.x responses do (#774). Thanks @gschnellOnera for the report use_cassetteaccepts apersisteroption, to use a custom persister for one cassette (#575). Thanks @gioele for the report
Releases
Full Changelog: v9.0.0...v9.1.0