pypi / responses
responses
What changed in responses 0.26, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
2 breaking3 new APIs and options4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initresponses 0.269 changes
Breaking changes 2
Default headers are stripped from recorded files regardless of header-name case, preventing redundant headers from being retained.
When both content_type and headers['content-type'] are in a response mock file, content_type is now used.
New APIs and options 3
Adds keep_headers to preserve named headers otherwise stripped as verbose defaults, allowing signed responses to be recorded and later verified. Matching is case-insensitive.
Adds keep_headers to preserve named headers otherwise stripped as verbose defaults, allowing signed responses to be recorded and later verified. Matching is case-insensitive.
Added strict_match, enabling partial request parameter matching.
Fixes and other changes 4
Fixes the exposed element type so static type checkers infer Call values when iterating, indexing, or filtering recorded calls.
Opaque fragments without
=are no longer treated as always equal, preventing a required fragment from matching a different fragment or none at all.Preserves blank-valued query parameters, preventing requests with an extra or missing blank parameter from matching incorrectly; this also fixes query matching automatically applied to a registered URL's own query string.
Fixed mutation of the caller's params dict when numeric values are provided.